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
+3 -10
View File
@@ -28,21 +28,14 @@
<div class="book-page">
{{ partial "docs/mobile-header" . }}
<article class="markdown">
{{- .Content -}}
</article>
{{ template "main" . }}
</div>
{{ $showToC := default (default true .Site.Params.BookShowToC) .Params.bookshowtoc }}
{{ if and ($showToC) (.Page.TableOfContents) }}
<aside class="book-toc fixed">
{{ partial "docs/toc" . }}
</aside>
{{ end }}
{{ template "toc" . }}
{{ partial "docs/inject/body" . }}
{{ template "_internal/google_analytics_async.html" . }}
</main>
</body>
</html>
</html>