Rename toc param to page.table_of_contents.hide
This commit is contained in:
@@ -323,6 +323,8 @@ paige:
|
|||||||
title:
|
title:
|
||||||
class: "display-5 fw-bold text-center" # Default is "display-5 fw-bold text-center"
|
class: "display-5 fw-bold text-center" # Default is "display-5 fw-bold text-center"
|
||||||
hide: false # Default is false
|
hide: false # Default is false
|
||||||
|
table_of_contents:
|
||||||
|
hide: false # Default is false
|
||||||
rss:
|
rss:
|
||||||
managing_editor: "Michael Bluth"
|
managing_editor: "Michael Bluth"
|
||||||
web_master: "Michael Bluth"
|
web_master: "Michael Bluth"
|
||||||
@@ -362,7 +364,8 @@ paige:
|
|||||||
title:
|
title:
|
||||||
class: "display-5 fw-bold text-center" # Default is "display-5 fw-bold text-center"
|
class: "display-5 fw-bold text-center" # Default is "display-5 fw-bold text-center"
|
||||||
hide: false # Default is false
|
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:
|
Additional optional home page parameters:
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{{ $page := . }}
|
{{ $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">
|
<section class="paige-toc">
|
||||||
<div class="border mb-3 pe-3 ps-3 pt-3 rounded">
|
<div class="border mb-3 pe-3 ps-3 pt-3 rounded">
|
||||||
{{ $page.TableOfContents }}
|
{{ $page.TableOfContents }}
|
||||||
|
Reference in New Issue
Block a user