Add a way to change the date format with 'dateFormat' site param
This commit is contained in:
parent
4b46c8cd72
commit
cb6cdb37ef
2 changed files with 2 additions and 2 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue