diff options
Diffstat (limited to 'layouts/docs/baseof.html')
-rw-r--r-- | layouts/docs/baseof.html | 3 |
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> |