aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/docs
diff options
context:
space:
mode:
authorAlex Shpak <alex-shpak@users.noreply.github.com>2018-11-25 13:30:25 +0100
committerAlex Shpak <alex-shpak@users.noreply.github.com>2018-11-25 13:30:25 +0100
commit76c251066fd34a26734bf1acdb1e041881e1c0af (patch)
treec332d7ae2bf0e45087fdcc33784dc99de9bcc98b /layouts/partials/docs
parent461aafe99569a93838f823729aaf8d51fa693aaf (diff)
Refactor templates and partials
Diffstat (limited to 'layouts/partials/docs')
-rw-r--r--layouts/partials/docs/toc.html7
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 }}