Move paige.main.* params to paige

This commit is contained in:
Will Faught
2023-02-24 17:17:39 -08:00
parent 42cf171da5
commit 42f8f041fd
6 changed files with 58 additions and 59 deletions

View File

@@ -8,9 +8,9 @@
{{ $listshowcontent = $params.listshowcontent }}
{{ end }}
{{ $class := $page.Param "paige.main.table_of_contents.class" | default "border mb-3 pe-3 ps-3 pt-3 rounded" }}
{{ $class := $page.Param "paige.table_of_contents.class" | default "border mb-3 pe-3 ps-3 pt-3 rounded" }}
{{ if and $page.Content ($page.Param "paige.main.table_of_contents.hide" | not) (not $listshowcontent) (ne $page.TableOfContents `<nav id="TableOfContents"></nav>`) }}
{{ if and $page.Content ($page.Param "paige.table_of_contents.hide" | not) (not $listshowcontent) (ne $page.TableOfContents `<nav id="TableOfContents"></nav>`) }}
<section class="paige-toc">
{{ with $class }}
<div class="{{ . }}">