diff options
author | Alex Shpak <alex-shpak@users.noreply.github.com> | 2018-11-25 13:30:25 +0100 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2018-11-25 13:30:25 +0100 |
commit | 76c251066fd34a26734bf1acdb1e041881e1c0af (patch) | |
tree | c332d7ae2bf0e45087fdcc33784dc99de9bcc98b /layouts/partials/docs/toc.html | |
parent | 461aafe99569a93838f823729aaf8d51fa693aaf (diff) |
Refactor templates and partials
Diffstat (limited to 'layouts/partials/docs/toc.html')
-rw-r--r-- | layouts/partials/docs/toc.html | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/layouts/partials/docs/toc.html b/layouts/partials/docs/toc.html index aca3785..83c276d 100644 --- a/layouts/partials/docs/toc.html +++ b/layouts/partials/docs/toc.html @@ -1 +1,6 @@ -{{ .Page.TableOfContents }}
\ No newline at end of file +{{ $showToC := default (default true .Site.Params.BookShowToC) .Params.bookshowtoc }} + {{ if and ($showToC) (.Page.TableOfContents) }} + <aside class="book-toc fixed"> + {{ .Page.TableOfContents }} + </aside> +{{ end }} |