summaryrefslogtreecommitdiff
path: root/layouts/_default/single.html
diff options
context:
space:
mode:
author南小北 <nanxiaobei@gmail.com>2019-04-28 23:22:34 +0800
committerGitHub <noreply@github.com>2019-04-28 23:22:34 +0800
commitb31a786dd00fdb556658fd8e042b2931ffeb13e6 (patch)
tree9c0433ae204df3409b0a781996afcbc955a65c17 /layouts/_default/single.html
parent4b46c8cd72efecdcebc88156b0d1b0be017e63bd (diff)
parentcb6cdb37ef7289fcb3c48bb8166388011872174a (diff)
Merge pull request #26 from canaltinova/date-param
Add a way to change the date format with 'dateFormat' site param
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r--layouts/_default/single.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 60bc6f9..c69e4c3 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -6,7 +6,7 @@
<div class="post-meta">
{{- if or .Params.author .Site.Params.author -}}
{{ .Params.author | default .Site.Params.author }} · {{ end }}
- {{- .Date.Format "2006.1.2" -}}
+ {{- .Date.Format (.Site.Params.dateFormat | default "2006.1.2") -}}
</div>
</header>
<div class="post-content">{{ .Content }}</div>