Move paige.list.content.show to paige.section_pages.full_pages

This commit is contained in:
Will Faught
2023-02-25 14:06:34 -08:00
parent 6412cf76dc
commit 7bb8fbac94
5 changed files with 6 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
{{ define "main" }}
{{ $page := . }}
{{ if $page.Param "paige.list.content.show" | not }}
{{ if $page.Param "paige.section_pages.full_pages" | not }}
{{ partial "paige/article.html" $page }}
{{ end }}

View File

@@ -21,7 +21,7 @@
{{ partial "paige/link.html" (dict "href" "paige/bootstrap/bootstrap.css") }}
{{ end }}
{{ if or ($page.Param "paige.math") (and ($page.Param "paige.list.content.show") (where $page.Pages "Params.paige.math" "eq" true)) }}
{{ if or ($page.Param "paige.math") (and ($page.Param "paige.section_pages.full_pages") (where $page.Pages "Params.paige.math" "eq" true)) }}
{{ partial "paige/link.html" (dict "href" "paige/katex/katex.css") }}
{{ end }}

View File

@@ -1,7 +1,7 @@
{{ $page := . }}
{{ if $page.Pages }}
{{ if $page.Param "paige.list.content.show" }}
{{ if $page.Param "paige.section_pages.full_pages" }}
{{ $p := $page.Paginate $page.Pages }}
<section id="paige-pages">
{{ range $p.Pages }}

View File

@@ -43,7 +43,7 @@ addEventListener("resize", paigeResize);
</script>
{{ partial "paige/script.html" (dict "src" "paige/bootstrap/bootstrap.bundle.js") }}
{{ if or ($page.Param "paige.math") (and ($page.Param "paige.list.content.show") (where $page.Pages "Params.paige.math" "eq" true)) }}
{{ if or ($page.Param "paige.math") (and ($page.Param "paige.section_pages.full_pages") (where $page.Pages "Params.paige.math" "eq" true)) }}
{{ partial "paige/script.html" (dict "src" "paige/katex/katex.js") }}
{{ partial "paige/script.html" (dict "onload" "renderMathInElement(document.body);" "src" "paige/katex/auto-render.js") }}
{{ end }}