Rename hide_theme_link to hide_credit_link
This commit is contained in:
@@ -246,7 +246,7 @@ paige:
|
|||||||
utterances: # utteranc.es
|
utterances: # utteranc.es
|
||||||
github_repo: "example/foo"
|
github_repo: "example/foo"
|
||||||
hide_credit_data: true # Don't credit this project in a data attribute
|
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:
|
math:
|
||||||
autorender:
|
autorender:
|
||||||
script_integrity: "sha384-+VBxd3r6XgURycqtZ117nYw44OOcIax56Z4dCRWbxyPt0Koah1uHoK0o4+/RRE05" # File integrity hash
|
script_integrity: "sha384-+VBxd3r6XgURycqtZ117nYw44OOcIax56Z4dCRWbxyPt0Koah1uHoK0o4+/RRE05" # File integrity hash
|
||||||
|
@@ -50,7 +50,7 @@ outputs:
|
|||||||
paginate: 50
|
paginate: 50
|
||||||
params:
|
params:
|
||||||
paige:
|
paige:
|
||||||
hide_theme_link: true
|
hide_credit_link: true
|
||||||
social:
|
social:
|
||||||
discord:
|
discord:
|
||||||
icon: discord
|
icon: discord
|
||||||
|
@@ -1,20 +1,20 @@
|
|||||||
{{ $page := . }}
|
{{ $page := . }}
|
||||||
|
|
||||||
{{ $copyright := site.Copyright }}
|
{{ $copyright := site.Copyright }}
|
||||||
|
{{ $credit := not site.Params.paige.hide_credit_link }}
|
||||||
{{ $first := templates.Exists "partials/paige/footer-first.html" }}
|
{{ $first := templates.Exists "partials/paige/footer-first.html" }}
|
||||||
{{ $last := templates.Exists "partials/paige/footer-last.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>
|
<footer>
|
||||||
{{ if $first }}
|
{{ if $first }}
|
||||||
{{ partial "paige/footer-first.html" . }}
|
{{ partial "paige/footer-first.html" . }}
|
||||||
{{ end }}
|
{{ 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>
|
<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 }}
|
{{ else if $copyright }}
|
||||||
<p class="text-center text-secondary">{{ $copyright | markdownify }}</p>
|
<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>
|
<p class="text-center"><a class="link-secondary text-decoration-none" href="https://github.com/willfaught/paige">Paige Theme</a></p>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if $last }}
|
{{ if $last }}
|
||||||
|
Reference in New Issue
Block a user