Use dateformat parameter in posts list

This commit is contained in:
Eric Rodrigues Pires 2019-02-08 11:11:26 -02:00
parent 8edca610b2
commit 2a8d9d4097

View file

@ -3,7 +3,7 @@
<span class="list__title--small">
<a href="{{ .RelPermalink }}" {{if .Draft}}class="draft"{{end}}>{{ .Title }}</a>
{{if not .Date.IsZero}}
<time class="pull-right hidden-tablet">{{.Date.Format ("Jan 02 '06")}}</time>
<time class="pull-right hidden-tablet">{{ .Date.Format (.Site.Params.dateformat | default "Jan 02 '06") }}</time>
{{end}}
</span>
</li>