Move paige_date_format to paige.date_format
This commit is contained in:
@@ -173,7 +173,6 @@ $ hugo server -D
|
|||||||
Optional site parameters:
|
Optional site parameters:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
paige_date_format: "2006 January 2" # Hugo date format for page dates
|
|
||||||
paige_hide_theme_comment: true # Don't put a link to this project in a code comment
|
paige_hide_theme_comment: true # Don't put a link to this project in a code comment
|
||||||
paige_hide_theme_link: true # Don't put a link to this project in the footer
|
paige_hide_theme_link: true # Don't put a link to this project in the footer
|
||||||
|
|
||||||
@@ -210,6 +209,7 @@ 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
|
||||||
```
|
```
|
||||||
|
|
||||||
If you set either `paige_hide_theme_comment` or `paige_hide_theme_link`, please credit this project in a post to help others find it.
|
If you set either `paige_hide_theme_comment` or `paige_hide_theme_link`, please credit this project in a post to help others find it.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{{ with .PublishDate }}
|
{{ with .PublishDate }}
|
||||||
{{ $format := ":date_long" }}
|
{{ $format := ":date_long" }}
|
||||||
{{ with site.Params.paige_date_format }}
|
{{ with site.Params.paige.date_format }}
|
||||||
{{ $format = . }}
|
{{ $format = . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<p class="text-center text-muted"><time datetime="{{ .Format `2006-01-02` }}">{{ time.Format $format . }}</time></p>
|
<p class="text-center text-muted"><time datetime="{{ .Format `2006-01-02` }}">{{ time.Format $format . }}</time></p>
|
||||||
|
Reference in New Issue
Block a user