diff options
Diffstat (limited to 'layouts/partials/docs/toc.html')
-rw-r--r-- | layouts/partials/docs/toc.html | 6 |
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 }} |