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