diff --git a/README.md b/README.md index 871e1891..ece83eee 100644 --- a/README.md +++ b/README.md @@ -173,7 +173,6 @@ $ hugo server -D Optional site parameters: ```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_link: true # Don't put a link to this project in the footer @@ -210,6 +209,7 @@ paige: account_id: "123456" utterances: # utteranc.es 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. diff --git a/layouts/partials/paige-date.html b/layouts/partials/paige-date.html index 73bc4eb1..1dc26bf3 100644 --- a/layouts/partials/paige-date.html +++ b/layouts/partials/paige-date.html @@ -1,6 +1,6 @@ {{ with .PublishDate }} {{ $format := ":date_long" }} -{{ with site.Params.paige_date_format }} +{{ with site.Params.paige.date_format }} {{ $format = . }} {{ end }}