Move paige_hide_theme_* config to paige object

master
Will Faught 3 years ago
parent 4a4feb5648
commit d77586ad7d

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

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

@ -21,6 +21,6 @@
{{ end }}
</body>
</html>
{{ if not .Site.Params.paige_hide_theme_comment }}
{{ if not .Site.Params.paige.hide_theme_comment }}
{{ printf "<!-- Paige theme from https://github.com/willfaught/paige -->" | safeHTML }}
{{ end }}

@ -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) }}
<footer>
{{ if and .Site.Copyright (not .Site.Params.paige_hide_theme_link) }}
{{ if and .Site.Copyright (not .Site.Params.paige.hide_theme_link) }}
<p class="text-center text-muted">{{ .Site.Copyright | markdownify }} · <a class="link-secondary text-decoration-none" href="https://github.com/willfaught/paige">Paige Theme</a></p>
{{ else if .Site.Copyright }}
<p class="text-center text-muted">{{ .Site.Copyright | markdownify }}</p>
{{ else if not .Site.Params.paige_hide_theme_link }}
{{ else if not .Site.Params.paige.hide_theme_link }}
<p class="text-center"><a class="link-secondary text-decoration-none" href="https://github.com/willfaught/paige">Paige Theme</a></p>
{{ end }}
</footer>

Loading…
Cancel
Save