use dateformat

This commit is contained in:
Miyako-ep 2018-04-25 07:10:26 +00:00
parent 542907a4ac
commit 238739173c

View file

@ -6,7 +6,7 @@
<a href="{{ .Permalink }}">{{ .Title }}</a>
{{ if not .Date.IsZero }}
<time class="pull-right post-list">
{{- .Date.Format (.Site.Params.dateform | default "Jan 02, 2006") -}}
{{- .Date.Format (.Site.Params.dateformat | default "Jan 02, 2006") -}}
</time>
{{end}}
</span>