Add README.md

This commit is contained in:
Alex Shpak
2018-09-13 18:07:55 +02:00
parent f4bcc2ecd9
commit e62448627e
6 changed files with 127 additions and 35 deletions
+2 -1
View File
@@ -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>