Rename hide_theme_link to hide_credit_link

This commit is contained in:
Will Faught
2023-01-29 11:41:50 -08:00
parent e858266ba0
commit 996a48ad5b
3 changed files with 6 additions and 6 deletions

View File

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