#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>
|
<body>
|
||||||
<input type="checkbox" class="hidden" id="menu-control" />
|
<input type="checkbox" class="hidden" id="menu-control" />
|
||||||
<main class="flex container">
|
<main class="flex container">
|
||||||
|
|
||||||
<aside class="book-menu fixed">
|
<aside class="book-menu fixed">
|
||||||
{{ partial "docs/menu" . }}
|
{{ partial "docs/menu" . }}
|
||||||
</aside>
|
</aside>
|
||||||
|
@ -16,8 +17,11 @@
|
||||||
<div class="book-posts">
|
<div class="book-posts">
|
||||||
{{ partial "docs/mobile-header" . }}
|
{{ partial "docs/mobile-header" . }}
|
||||||
{{ template "main" . }}
|
{{ template "main" . }}
|
||||||
|
{{ partial "docs/git-footer" . }}
|
||||||
{{ partial "docs/inject/footer" . }}
|
{{ partial "docs/inject/footer" . }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{{ template "toc" . }}
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
{{ partial "docs/inject/body" . }}
|
{{ partial "docs/inject/body" . }}
|
||||||
|
|
|
@ -19,3 +19,7 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ template "_internal/pagination.html" . }}
|
{{ template "_internal/pagination.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
{{ define "toc" }}
|
||||||
|
|
||||||
|
{{ end }}
|
||||||
|
|
|
@ -10,3 +10,7 @@
|
||||||
{{- .Content -}}
|
{{- .Content -}}
|
||||||
</article>
|
</article>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
{{ define "toc" }}
|
||||||
|
{{ partial "docs/toc" . }}
|
||||||
|
{{ end }}
|
||||||
|
|
Loading…
Reference in a new issue