Add paigedateformat site parameter

This commit is contained in:
Will Faught
2022-12-13 22:35:17 -08:00
parent e6afd4e29e
commit 1710fd720c
2 changed files with 7 additions and 2 deletions

View File

@@ -1,3 +1,7 @@
{{ with .PublishDate }}
<p class="text-center text-muted"><time datetime="{{ .Format `2006-01-02` }}">{{ .Format "January 2, 2006" }}</time></p>
{{ $format := ":date_long" }}
{{ with site.Params.paigedateformat }}
{{ $format = . }}
{{ end }}
<p class="text-center text-muted"><time datetime="{{ .Format `2006-01-02` }}">{{ time.Format $format . }}</time></p>
{{ end }}