Refactor templates and partials
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user