Add before and after partials for toc (#296)

Closes #257
This commit is contained in:
Tiger Oakes
2021-01-26 09:45:08 -08:00
committed by GitHub
parent a12baf0e01
commit 012ccee53d
7 changed files with 25 additions and 19 deletions
+5 -1
View File
@@ -36,7 +36,11 @@
{{ if default true (default .Site.Params.BookToC .Params.BookToC) }}
<aside class="book-toc">
{{ template "toc" . }} <!-- Table of Contents -->
<nav>
{{ partial "docs/inject/toc-before" . }}
{{ template "toc" . }} <!-- Table of Contents -->
{{ partial "docs/inject/toc-after" . }}
</nav>
</aside>
{{ end }}
</main>