feat(i18n): make dateFormat part of theme config

This commit is contained in:
Jimmy Cai
2020-09-09 17:35:22 +02:00
parent da112157cf
commit 4d0e260318
4 changed files with 6 additions and 3 deletions
@@ -33,7 +33,7 @@
<footer class="article-time">
{{ (resources.Get "icons/clock.svg").Content | safeHTML }}
<time class="article-time--published">
{{- .Date.Format ( or .Site.Params.dateFormat "Jan 02, 2006" ) -}}
{{- .Date.Format (or .Site.Params.dateFormat.published "Jan 02, 2006") -}}
</time>
</footer>
{{- end -}}