diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 43a9d84a..207596ec 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -1,6 +1,6 @@
{{ $page := . }}
-{{ $credit := not ($page.Param "paige.hide_credit_data") }}
+{{ $credit := $page.Param "paige.hide_credit_data" | not }}
{{ $dark := eq ($page.Param "paige.color_scheme") "dark" }}
{{ $lang := $page.Site.LanguageCode | default $page.Site.Language.Lang }}
{{ $rtl := eq $page.Language.LanguageDirection "rtl" }}
diff --git a/layouts/partials/paige/footer.html b/layouts/partials/paige/footer.html
index 2e35eac5..9ab3c64c 100644
--- a/layouts/partials/paige/footer.html
+++ b/layouts/partials/paige/footer.html
@@ -1,7 +1,7 @@
{{ $page := . }}
{{ $copyright := site.Copyright }}
-{{ $credit := not ($page.Param "paige.hide_credit_link") }}
+{{ $credit := $page.Param "paige.hide_credit_link" | not }}
{{ $first := templates.Exists "partials/paige/footer-first.html" }}
{{ $last := templates.Exists "partials/paige/footer-last.html" }}
diff --git a/layouts/partials/paige/scripts.html b/layouts/partials/paige/scripts.html
index 3ae16df1..446e5c9a 100644
--- a/layouts/partials/paige/scripts.html
+++ b/layouts/partials/paige/scripts.html
@@ -34,7 +34,7 @@ function paigeResize() {
}
paigeResize();
addEventListener("resize", paigeResize);
-{{ if not ($page.Param "paige.color_scheme") }}
+{{ if $page.Param "paige.color_scheme" | not }}
var paigeQuery = matchMedia("(prefers-color-scheme: dark)");
if (paigeQuery.matches) {
document.documentElement.setAttribute("data-bs-theme", "dark")