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

7 lines
222 B
HTML
Raw Normal View History

2018-11-25 12:30:25 +00:00
{{ $showToC := default (default true .Site.Params.BookShowToC) .Params.bookshowtoc }}
{{ if and ($showToC) (.Page.TableOfContents) }}
<aside class="book-toc fixed">
{{ .Page.TableOfContents }}
</aside>
{{ end }}