diff --git a/README.md b/README.md index 8c7a00d7..d15cf3fc 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/layouts/partials/paige/toc.html b/layouts/partials/paige/toc.html index 20b71434..85a97a85 100644 --- a/layouts/partials/paige/toc.html +++ b/layouts/partials/paige/toc.html @@ -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 ``) }} +{{ 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 ``) }} {{ $page.TableOfContents }}