aboutsummaryrefslogtreecommitdiff
path: root/layouts/docs/baseof.html
diff options
context:
space:
mode:
authorAlex Shpak <alex-shpak@users.noreply.github.com>2018-09-13 18:07:55 +0200
committerAlex Shpak <alex-shpak@users.noreply.github.com>2018-09-13 18:07:55 +0200
commite62448627edbfaea940b0f7995b9d4da481b3c3f (patch)
treedea4f9aac62c08f71b517c57ea256960d75a33b8 /layouts/docs/baseof.html
parentf4bcc2ecd9b7af79e4aab4d56acb86f5f9ab7eab (diff)
Add README.md
Diffstat (limited to 'layouts/docs/baseof.html')
-rw-r--r--layouts/docs/baseof.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/docs/baseof.html b/layouts/docs/baseof.html
index f7e8477..a71bd59 100644
--- a/layouts/docs/baseof.html
+++ b/layouts/docs/baseof.html
@@ -29,7 +29,8 @@
<div class="pure-u book-page markdown">
{{ block "main" . }} {{- .Content -}} {{ end }}
</div>
- {{ if and (default true .Site.Params.BookShowTOC) (.Page.TableOfContents) }}
+ {{ $showToC := default (default true .Site.Params.BookShowToC) .Params.bookshowtoc }}
+ {{ if and ($showToC) (.Page.TableOfContents) }}
<div class="pure-u book-toc">
{{ partial "docs/toc" . }}
</div>