diff options
author | Alex Shpak <alex-shpak@users.noreply.github.com> | 2019-05-27 16:48:23 +0200 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2019-05-27 16:48:23 +0200 |
commit | e452a7bedabdfe0c0d62aa4e948902d6632a889d (patch) | |
tree | ea638449f93fb820ce3c3df0c6a3ee780edf7d61 /exampleSite/config.toml | |
parent | 6d64cc708e73c38f23bfc5929608d5d77a9c5a07 (diff) |
#52, Allow to set max showed levels of ToC. e.g. BookToC=3
Diffstat (limited to 'exampleSite/config.toml')
-rw-r--r-- | exampleSite/config.toml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 11b42dd..63e670b 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -15,9 +15,10 @@ enableGitInfo = true pygmentsCodeFences = true [params] - # (Optional, default true) Show or hide table of contents globally + # (Optional, default 6) Set how many table of contents levels to be showed on page. + # Use false to hide ToC, note that 0 will default to 6 (https://gohugo.io/functions/default/) # You can also specify this parameter per page in front matter - BookShowToC = true + BookToC = 3 # (Optional, default none) Set leaf bundle to render as side menu # When not specified file structure and weights will be used |