diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 9d43caf9..b84d830a 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,7 +1,7 @@ {{ define "main" }} {{ $page := . }} -{{ if not .Params.paige.show_full_pages }} +{{ if $page.Param "paige.show_full_pages" | not }} {{ partial "paige/article.html" $page }} {{ end }} {{ partial "paige/pages.html" $page }} diff --git a/layouts/partials/paige/links.html b/layouts/partials/paige/links.html index 85172a33..71b9d919 100644 --- a/layouts/partials/paige/links.html +++ b/layouts/partials/paige/links.html @@ -20,7 +20,7 @@ "integrity" ($page.Param "paige.bootstrap.style.link_integrity") "raw" ($page.Param "paige.bootstrap.style.raw") ) }} -{{ if or $page.Params.paige.math (and $page.Params.paige.show_full_pages (where $page.Pages "Params.paige.math" "eq" true)) }} +{{ if or ($page.Param "paige.math") (and ($page.Param "paige.show_full_pages") (where $page.Pages "Params.paige.math" "eq" true)) }} {{ partial "paige/link.html" (dict "href" ($page.Param "paige.math.style.link_href" | default "https://cdn.jsdelivr.net/npm/katex@0.16.3/dist/katex.min.css") "integrity" ($page.Param "paige.math.style.link_integrity" | default "sha256-NJNVfEC6jfEt62wQMafLNT2eI6BaWONXbpkSEVAs3+8=") diff --git a/layouts/partials/paige/pages.html b/layouts/partials/paige/pages.html index d4ffb39c..915f60a1 100644 --- a/layouts/partials/paige/pages.html +++ b/layouts/partials/paige/pages.html @@ -1,7 +1,7 @@ {{ $page := . }} {{ if $page.Pages }} - {{ if $page.Params.paige.show_full_pages }} + {{ if $page.Param "paige.show_full_pages" }} {{ $p := $page.Paginate $page.Pages }} {{ range $p.Pages }} diff --git a/layouts/partials/paige/scripts.html b/layouts/partials/paige/scripts.html index 9f109600..3ae16df1 100644 --- a/layouts/partials/paige/scripts.html +++ b/layouts/partials/paige/scripts.html @@ -53,7 +53,7 @@ paigeQuery.addEventListener("change", function (e) { "raw" ($page.Param "paige.bootstrap.script.raw") "src" ($page.Param "paige.bootstrap.script.script_src" | default "https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js") ) }} -{{ if or .Params.paige.math (and .Params.paige.show_full_pages (where .Pages "Params.paige.math" "eq" true)) }} +{{ if or ($page.Param "paige.math") (and ($page.Param "paige.show_full_pages") (where $page.Pages "Params.paige.math" "eq" true)) }} {{ partial "paige/script.html" (dict "integrity" ($page.Param "paige.math.script.script_integrity") "raw" ($page.Param "paige.math.script.raw") diff --git a/layouts/partials/paige/toc.html b/layouts/partials/paige/toc.html index d3e695da..9a12417b 100644 --- a/layouts/partials/paige/toc.html +++ b/layouts/partials/paige/toc.html @@ -1,6 +1,6 @@ {{ $page := . }} -{{ if and $page.Content $page.Params.paige.toc (not (eq ($page.Scratch.Get "paige_show_full_pages") true)) (ne $page.TableOfContents ``) }} +{{ if and $page.Content ($page.Param "paige.toc") (not (eq ($page.Scratch.Get "paige_show_full_pages") true)) (ne $page.TableOfContents ``) }} {{ $page.TableOfContents }}