Rename date_format to format

master
Will Faught 2 years ago
parent 52eb483ed7
commit 2c2961c4d6

@ -245,7 +245,6 @@ paige:
account_id: "123456"
utterances: # utteranc.es
github_repo: "example/foo"
date_format: "2006 January 2" # Hugo date format for page dates
hide_theme_comment: true # Don't put a link to this project in a code comment
hide_theme_link: true # Don't put a link to this project in the footer
math:
@ -270,6 +269,7 @@ paige:
hide: false # Default is false
date:
class: "text-center text-secondary" # Default is "text-center text-secondary"
format: ":date_long" # Default is ":date_long"
hide: false # Default is false
description:
class: "lead text-center" # Default is "lead text-center"

@ -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 }}

@ -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 }}

Loading…
Cancel
Save