Merge pull request #64 from EpicEric/feature/dateformat-posts-list

Use dateformat parameter in posts list
This commit is contained in:
Huy Tran 2019-02-12 07:47:57 +07:00 committed by GitHub
commit 754c3149dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,7 +3,7 @@
<span class="list__title--small"> <span class="list__title--small">
<a href="{{ .RelPermalink }}" {{if .Draft}}class="draft"{{end}}>{{ .Title }}</a> <a href="{{ .RelPermalink }}" {{if .Draft}}class="draft"{{end}}>{{ .Title }}</a>
{{if not .Date.IsZero}} {{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}} {{end}}
</span> </span>
</li> </li>