Replace .Params, $page.Params with $page.Param
This commit is contained in:
@@ -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=")
|
||||
|
@@ -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 }}
|
||||
<section>
|
||||
{{ range $p.Pages }}
|
||||
|
@@ -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")
|
||||
|
@@ -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 `<nav id="TableOfContents"></nav>`) }}
|
||||
{{ if and $page.Content ($page.Param "paige.toc") (not (eq ($page.Scratch.Get "paige_show_full_pages") true)) (ne $page.TableOfContents `<nav id="TableOfContents"></nav>`) }}
|
||||
<section class="paige-toc">
|
||||
<div class="border mb-3 pe-3 ps-3 pt-3 rounded">
|
||||
{{ $page.TableOfContents }}
|
||||
|
Reference in New Issue
Block a user