diff --git a/README.md b/README.md index ece83eee..4196d367 100644 --- a/README.md +++ b/README.md @@ -173,9 +173,6 @@ $ hugo server -D Optional site parameters: ```yaml -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: analytics: fathom: # usefathom.com @@ -210,9 +207,11 @@ paige: 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 ``` -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 `hide_theme_comment` or `hide_theme_link`, please credit this project in a post to help others find it. Optional page parameters: diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 8b089be2..a3450c31 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -52,8 +52,9 @@ outputs: - rss paginate: 50 params: - paige_hide_theme_comment: true - paige_hide_theme_link: true + paige: + hide_theme_comment: true + hide_theme_link: true permalinks: blog: /blog/:year/:month/:day/:title/ social: diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 0d39c8b9..0ffbfd43 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -21,6 +21,6 @@ {{ end }} -{{ if not .Site.Params.paige_hide_theme_comment }} +{{ if not .Site.Params.paige.hide_theme_comment }} {{ printf "" | safeHTML }} {{ end }} diff --git a/layouts/partials/paige-footer.html b/layouts/partials/paige-footer.html index 2fa6d569..2bc80dca 100644 --- a/layouts/partials/paige-footer.html +++ b/layouts/partials/paige-footer.html @@ -1,10 +1,10 @@ -{{ if or .Site.Copyright (not .Site.Params.paige_hide_theme_link) }} +{{ if or .Site.Copyright (not .Site.Params.paige.hide_theme_link) }}