mirror of
https://github.com/alex-shpak/hugo-book.git
synced 2024-11-26 13:16:46 +00:00
7 lines
231 B
HTML
7 lines
231 B
HTML
{{ $tocLevels := default (default 6 .Site.Params.BookToC) .Params.BookToC }}
|
|
{{ if and $tocLevels .Page.TableOfContents }}
|
|
<aside class="book-toc levels-{{$tocLevels}} fixed">
|
|
{{ .Page.TableOfContents }}
|
|
</aside>
|
|
{{ end }}
|