#52, Allow to set max showed levels of ToC. e.g. BookToC=3

This commit is contained in:
Alex Shpak
2019-05-27 16:48:23 +02:00
parent 6d64cc708e
commit e452a7beda
9 changed files with 33 additions and 16 deletions
+3 -2
View File
@@ -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
+3 -2
View File
@@ -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/off 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
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
{"Target":"book.min.1009ab9f4daf8375016f8f76fc100311154512dbc6cc21faa1282132e83dad16.css","MediaType":"text/css","Data":{"Integrity":"sha256-EAmrn02vg3UBb492/BADERVFEtvGzCH6oSghMug9rRY="}}
{"Target":"book.min.3c69b4506bc4a8da260ab28ed0c14019a49435aed9fd20517f353987fa0f60ec.css","MediaType":"text/css","Data":{"Integrity":"sha256-PGm0UGvEqNomCrKO0MFAGaSUNa7Z/SBRfzU5h/oPYOw="}}