Rename hide_theme_link to hide_credit_link

master
Will Faught 2 years ago
parent e858266ba0
commit 996a48ad5b

@ -246,7 +246,7 @@ paige:
utterances: # utteranc.es
github_repo: "example/foo"
hide_credit_data: true # Don't credit this project in a data attribute
hide_theme_link: true # Don't put a link to this project in the footer
hide_credit_link: true # Don't put a link to this project in the footer
math:
autorender:
script_integrity: "sha384-+VBxd3r6XgURycqtZ117nYw44OOcIax56Z4dCRWbxyPt0Koah1uHoK0o4+/RRE05" # File integrity hash

@ -50,7 +50,7 @@ outputs:
paginate: 50
params:
paige:
hide_theme_link: true
hide_credit_link: true
social:
discord:
icon: discord

@ -1,20 +1,20 @@
{{ $page := . }}
{{ $copyright := site.Copyright }}
{{ $credit := not site.Params.paige.hide_credit_link }}
{{ $first := templates.Exists "partials/paige/footer-first.html" }}
{{ $last := templates.Exists "partials/paige/footer-last.html" }}
{{ $showlink := not site.Params.paige.hide_theme_link }}
{{ if or $copyright $first $last $showlink }}
{{ if or $copyright $credit $first $last }}
<footer>
{{ if $first }}
{{ partial "paige/footer-first.html" . }}
{{ end }}
{{ if and $copyright $showlink }}
{{ if and $copyright $credit }}
<p class="text-center text-secondary">{{ $copyright | markdownify }} · <a class="link-secondary text-decoration-none" href="https://github.com/willfaught/paige">Paige Theme</a></p>
{{ else if $copyright }}
<p class="text-center text-secondary">{{ $copyright | markdownify }}</p>
{{ else if $showlink }}
{{ else if $credit }}
<p class="text-center"><a class="link-secondary text-decoration-none" href="https://github.com/willfaught/paige">Paige Theme</a></p>
{{ end }}
{{ if $last }}

Loading…
Cancel
Save