hugo-book-theme/layouts/partials/docs/toc.html

7 lines
230 B
HTML
Raw Normal View History

{{ $tocLevels := default (default 6 .Site.Params.BookToC) .Params.BookToC }}
{{ if and $tocLevels .Page.TableOfContents }}
<aside class="book-toc level-{{$tocLevels}} fixed">
2018-11-25 13:30:25 +01:00
{{ .Page.TableOfContents }}
</aside>
{{ end }}