summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorAlex Shpak <alex-shpak@users.noreply.github.com>2019-05-27 16:48:23 +0200
committerAlex Shpak <alex-shpak@users.noreply.github.com>2019-05-27 16:48:23 +0200
commite452a7bedabdfe0c0d62aa4e948902d6632a889d (patch)
treeea638449f93fb820ce3c3df0c6a3ee780edf7d61 /README.md
parent6d64cc708e73c38f23bfc5929608d5d77a9c5a07 (diff)
#52, Allow to set max showed levels of ToC. e.g. BookToC=3
Diffstat (limited to 'README.md')
-rw-r--r--README.md15
1 files changed, 10 insertions, 5 deletions
diff --git a/README.md b/README.md
index fe1f7d6..f7a87da 100644
--- a/README.md
+++ b/README.md
@@ -15,6 +15,10 @@
- [Shortcodes](#shortcodes)
- [Contributing](#contributing)
+## Breaking changes
+
+> ⚠️ At the moment theme is under development, breaking changes might happen.
+
## Features
- Clean simple design
@@ -123,9 +127,10 @@ enableGitInfo = true
disableKinds = ['taxonomy', 'taxonomyTerm']
[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
@@ -174,8 +179,8 @@ bookFlatSection = true
# (Optional) Set true to hide page or section from side menu (if BookMenuBundle not set)
bookHidden = true
-# (Optional) Set true to hide table of contents, overrides global value
-bookShowToC = false
+# (Optional) Set how many levels of ToC to show. use 'false' to hide ToC completely
+bookToC = 3
```
### Partials
@@ -235,7 +240,7 @@ Organize text in 2 or more columns to use space efficiently.
# Mid Content Lorem markdownum insigne... <--->
<!-- magic sparator, between columns -->
-# Right Content Lorem markdownum insigne...
+# Right Content Lorem markdownum insigne...
{{< /columns >}}
```