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

@@ -323,6 +323,8 @@ paige:
title:
class: "display-5 fw-bold text-center" # Default is "display-5 fw-bold text-center"
hide: false # Default is false
table_of_contents:
hide: false # Default is false
rss:
managing_editor: "Michael Bluth"
web_master: "Michael Bluth"
@@ -362,7 +364,8 @@ paige:
title:
class: "display-5 fw-bold text-center" # Default is "display-5 fw-bold text-center"
hide: false # Default is false
toc: true # Show a table of contents if there are any headers
table_of_contents:
hide: false # Default is false
```
Additional optional home page parameters:

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 }}