Made date format configurable

Can be configured in config.toml Params.dateFormat
This commit is contained in:
Michael Romero 2017-03-06 14:36:35 -08:00
commit 0338abd814
4 changed files with 4 additions and 3 deletions

View file

@ -13,7 +13,7 @@
{{ end }}
{{ if eq .Type "post" }}
<span class="post-meta">Posted on {{ .Date.Format "January 2, 2006" }}</span>
<span class="post-meta">Posted on {{ .Date.Format .Site.Params.dateFormat }}</span>
{{ end }}
</div>
</div>