Rename toc param to page.table_of_contents.hide

This commit is contained in:
Will Faught
2023-02-04 21:27:25 -08:00
parent 5d4754976b
commit 62c123d558
2 changed files with 5 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{{ $page := . }}
{{ if and $page.Content ($page.Param "paige.toc") (not (eq ($page.Scratch.Get "paige_list_show_content") true)) (ne $page.TableOfContents `<nav id="TableOfContents"></nav>`) }}
{{ if and $page.Content ($page.Param "paige.page.table_of_contents.hide" | not) (not (eq ($page.Scratch.Get "paige_list_show_content") 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 }}