aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/docs/toc.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/docs/toc.html')
-rw-r--r--layouts/partials/docs/toc.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/partials/docs/toc.html b/layouts/partials/docs/toc.html
index 83c276d..c81341c 100644
--- a/layouts/partials/docs/toc.html
+++ b/layouts/partials/docs/toc.html
@@ -1,6 +1,6 @@
-{{ $showToC := default (default true .Site.Params.BookShowToC) .Params.bookshowtoc }}
- {{ if and ($showToC) (.Page.TableOfContents) }}
- <aside class="book-toc fixed">
+{{ $tocLevels := default (default 6 .Site.Params.BookToC) .Params.BookToC }}
+{{ if and $tocLevels .Page.TableOfContents }}
+ <aside class="book-toc level-{{$tocLevels}} fixed">
{{ .Page.TableOfContents }}
</aside>
{{ end }}