Rename date_format to format
This commit is contained in:
@@ -245,7 +245,6 @@ paige:
|
|||||||
account_id: "123456"
|
account_id: "123456"
|
||||||
utterances: # utteranc.es
|
utterances: # utteranc.es
|
||||||
github_repo: "example/foo"
|
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_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
|
hide_theme_link: true # Don't put a link to this project in the footer
|
||||||
math:
|
math:
|
||||||
@@ -270,6 +269,7 @@ paige:
|
|||||||
hide: false # Default is false
|
hide: false # Default is false
|
||||||
date:
|
date:
|
||||||
class: "text-center text-secondary" # Default is "text-center text-secondary"
|
class: "text-center text-secondary" # Default is "text-center text-secondary"
|
||||||
|
format: ":date_long" # Default is ":date_long"
|
||||||
hide: false # Default is false
|
hide: false # Default is false
|
||||||
description:
|
description:
|
||||||
class: "lead text-center" # Default is "lead text-center"
|
class: "lead text-center" # Default is "lead text-center"
|
||||||
|
@@ -9,6 +9,6 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
{{ with $date }}
|
{{ with $date }}
|
||||||
<p class="{{ $dateclass }}">
|
<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>
|
</p>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -66,7 +66,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
{{ with $date }}
|
{{ with $date }}
|
||||||
<p class="{{ if $summary }} {{ $gap }} {{ end }} {{ $dateclass }}">
|
<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>
|
</p>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if $summary }}
|
{{ if $summary }}
|
||||||
|
Reference in New Issue
Block a user