From 925cb1807510913d8b9f8cc4bf2efa528824829b Mon Sep 17 00:00:00 2001 From: Will Faught Date: Sun, 5 Feb 2023 19:40:54 -0800 Subject: [PATCH] Move paige.hide_credit_{data,link} to credit.{data,link}.hide --- README.md | 7 +++++-- layouts/_default/baseof.html | 2 +- layouts/partials/paige/footer.html | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 44c9f4aa..130a84d7 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 4bc5f542..1ae50bd4 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -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" }} diff --git a/layouts/partials/paige/footer.html b/layouts/partials/paige/footer.html index 9ab3c64c..6031bfeb 100644 --- a/layouts/partials/paige/footer.html +++ b/layouts/partials/paige/footer.html @@ -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" }}