summaryrefslogtreecommitdiff
path: root/layouts/_default/list.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/list.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/list.html')
-rw-r--r--layouts/_default/list.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 76ddfcd..38b6dda 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -20,7 +20,7 @@
<p>{{ .Summary | plainify | htmlUnescape }}...</p>
</section>
<footer class="entry-footer">
- <time >{{ .Date.Format "2006.1.2" }}</time>
+ <time>{{ .Date.Format (.Site.Params.dateFormat | default "2006.1.2") }}</time>
</footer>
<a class="entry-link" href="{{ .Permalink }}"></a>
</article>