diff options
| author | Nazım Can Altınova <canaltinova@gmail.com> | 2019-04-28 15:54:18 +0200 |
|---|---|---|
| committer | Nazım Can Altınova <canaltinova@gmail.com> | 2019-04-28 15:56:39 +0200 |
| commit | cb6cdb37ef7289fcb3c48bb8166388011872174a (patch) | |
| tree | 9c0433ae204df3409b0a781996afcbc955a65c17 /layouts/_default/list.html | |
| parent | 4b46c8cd72efecdcebc88156b0d1b0be017e63bd (diff) | |
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.html | 2 |
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> |
