aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials')
-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 }}