#73, Enable TOC and git footer for posts

soper-book
Alex Shpak 2019-09-22 13:15:22 +02:00
parent 74422e6896
commit 5d6873e992
3 changed files with 12 additions and 0 deletions

View File

@ -9,6 +9,7 @@
<body>
<input type="checkbox" class="hidden" id="menu-control" />
<main class="flex container">
<aside class="book-menu fixed">
{{ partial "docs/menu" . }}
</aside>
@ -16,8 +17,11 @@
<div class="book-posts">
{{ partial "docs/mobile-header" . }}
{{ template "main" . }}
{{ partial "docs/git-footer" . }}
{{ partial "docs/inject/footer" . }}
</div>
{{ template "toc" . }}
</main>
{{ partial "docs/inject/body" . }}

View File

@ -19,3 +19,7 @@
{{ end }}
{{ template "_internal/pagination.html" . }}
{{ end }}
{{ define "toc" }}
{{ end }}

View File

@ -10,3 +10,7 @@
{{- .Content -}}
</article>
{{ end }}
{{ define "toc" }}
{{ partial "docs/toc" . }}
{{ end }}