diff options
author | Alex Shpak <alex-shpak@users.noreply.github.com> | 2018-09-13 18:07:55 +0200 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2018-09-13 18:07:55 +0200 |
commit | e62448627edbfaea940b0f7995b9d4da481b3c3f (patch) | |
tree | dea4f9aac62c08f71b517c57ea256960d75a33b8 /layouts/docs/baseof.html | |
parent | f4bcc2ecd9b7af79e4aab4d56acb86f5f9ab7eab (diff) |
Add README.md
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> |