Refactor templates and partials

This commit is contained in:
Alex Shpak
2018-11-25 13:30:25 +01:00
parent 461aafe995
commit 76c251066f
11 changed files with 57 additions and 33 deletions
+6 -1
View File
@@ -1 +1,6 @@
{{ .Page.TableOfContents }}
{{ $showToC := default (default true .Site.Params.BookShowToC) .Params.bookshowtoc }}
{{ if and ($showToC) (.Page.TableOfContents) }}
<aside class="book-toc fixed">
{{ .Page.TableOfContents }}
</aside>
{{ end }}