#73, Enable TOC and git footer for posts
This commit is contained in:
parent
74422e6896
commit
5d6873e992
3 changed files with 12 additions and 0 deletions
|
@ -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" . }}
|
||||
|
|
|
@ -19,3 +19,7 @@
|
|||
{{ end }}
|
||||
{{ template "_internal/pagination.html" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "toc" }}
|
||||
|
||||
{{ end }}
|
||||
|
|
|
@ -10,3 +10,7 @@
|
|||
{{- .Content -}}
|
||||
</article>
|
||||
{{ end }}
|
||||
|
||||
{{ define "toc" }}
|
||||
{{ partial "docs/toc" . }}
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in a new issue