Move paige.hide_credit_{data,link} to credit.{data,link}.hide

This commit is contained in:
Will Faught
2023-02-05 19:40:54 -08:00
parent 9640d143f0
commit 925cb18075
3 changed files with 7 additions and 4 deletions

View File

@@ -244,8 +244,11 @@ paige:
raw: false # Do not copy or process the file; default is false
stretch: false # Stretch the image fully horizontally if true; center the image otherwise; default is false
url: "me.jpg" # A page, site, or remote resource glob; default is ""
hide_credit_data: false # Don't credit this project in a data attribute; default is false
hide_credit_link: false # Don't credit this project in the footer; default is false
credit:
data:
hide: false # Don't credit this project in a data attribute; default is false
link:
hide: false # Don't credit this project in the footer; default is false
katex:
autorender:
raw: false # Do not copy or process the file; default is false

View File

@@ -1,6 +1,6 @@
{{ $page := . }}
{{ $credit := $page.Param "paige.hide_credit_data" | not }}
{{ $credit := $page.Param "paige.credit.data.hide" | not }}
{{ $dark := eq ($page.Param "paige.color_scheme") "dark" }}
{{ $lang := site.LanguageCode | default site.Language.Lang }}
{{ $rtl := eq $page.Language.LanguageDirection "rtl" }}

View File

@@ -1,7 +1,7 @@
{{ $page := . }}
{{ $copyright := site.Copyright }}
{{ $credit := $page.Param "paige.hide_credit_link" | not }}
{{ $credit := $page.Param "paige.credit.link.hide" | not }}
{{ $first := templates.Exists "partials/paige/footer-first.html" }}
{{ $last := templates.Exists "partials/paige/footer-last.html" }}