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: Optional site parameters:
```yaml ```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: paige:
analytics: analytics:
fathom: # usefathom.com fathom: # usefathom.com
@ -210,9 +207,11 @@ paige:
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 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: Optional page parameters:

@ -52,8 +52,9 @@ outputs:
- rss - rss
paginate: 50 paginate: 50
params: params:
paige_hide_theme_comment: true paige:
paige_hide_theme_link: true hide_theme_comment: true
hide_theme_link: true
permalinks: permalinks:
blog: /blog/:year/:month/:day/:title/ blog: /blog/:year/:month/:day/:title/
social: social:

@ -21,6 +21,6 @@
{{ end }} {{ end }}
</body> </body>
</html> </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 }} {{ printf "<!-- Paige theme from https://github.com/willfaught/paige -->" | safeHTML }}
{{ end }} {{ 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> <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> <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 }} {{ else if .Site.Copyright }}
<p class="text-center text-muted">{{ .Site.Copyright | markdownify }}</p> <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> <p class="text-center"><a class="link-secondary text-decoration-none" href="https://github.com/willfaught/paige">Paige Theme</a></p>
{{ end }} {{ end }}
</footer> </footer>

Loading…
Cancel
Save