diff --git a/README.md b/README.md index d4c4fda2..e02251df 100644 --- a/README.md +++ b/README.md @@ -319,8 +319,6 @@ paige: hide: false # Don't include this page in search results; default is false section: class: "paige-metadata w-100" # Default is "paige-metadata w-100" - table_of_contents: - hide: false # Default is false terms: hide: false # Default is false inner_class: "badge text-bg-secondary text-decoration-none" # Default is "badge text-bg-secondary text-decoration-none" @@ -328,6 +326,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" # Default is "" web_master: "Michael Bluth" # Default is "" diff --git a/layouts/partials/paige/toc.html b/layouts/partials/paige/toc.html index 8b869652..3a42b907 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.main.metadata.table_of_contents.hide" | not) (not (eq ($page.Scratch.Get "paige_list_show_content") true)) (ne $page.TableOfContents ``) }} +{{ if and $page.Content ($page.Param "paige.main.table_of_contents.hide" | not) (not (eq ($page.Scratch.Get "paige_list_show_content") true)) (ne $page.TableOfContents ``) }}
{{ $page.TableOfContents }}