Rename date_format to format

This commit is contained in:
Will Faught
2023-01-28 19:44:06 -08:00
parent 52eb483ed7
commit 2c2961c4d6
3 changed files with 3 additions and 3 deletions

View File

@@ -9,6 +9,6 @@
{{ end }}
{{ with $date }}
<p class="{{ $dateclass }}">
<time datetime="{{ .Format `2006-01-02` }}">{{ time.Format (site.Params.paige.date_format | default ":date_long") . }}</time>
<time datetime="{{ .Format `2006-01-02` }}">{{ time.Format (site.Params.paige.page.date.format | default ":date_long") . }}</time>
</p>
{{ end }}

View File

@@ -66,7 +66,7 @@
{{ end }}
{{ with $date }}
<p class="{{ if $summary }} {{ $gap }} {{ end }} {{ $dateclass }}">
<time datetime="{{ .Format `2006-01-02` }}">{{ time.Format (site.Params.paige.date_format | default ":date_long") . }}</time>
<time datetime="{{ .Format `2006-01-02` }}">{{ time.Format (site.Params.paige.page_list.date.format | default ":date_long") . }}</time>
</p>
{{ end }}
{{ if $summary }}