aboutsummaryrefslogtreecommitdiff
path: root/layouts/_default/baseof.html
diff options
context:
space:
mode:
authorTiger Oakes <contact@tigeroakes.com>2021-01-26 09:45:08 -0800
committerGitHub <noreply@github.com>2021-01-26 18:45:08 +0100
commit012ccee53d9154e4143f86ba40e492075db861ce (patch)
tree06b1689007c31f939fc4c3303f66d21acc1a0189 /layouts/_default/baseof.html
parenta12baf0e01646e597c49ec5ee15819481d9f3b8d (diff)
Add before and after partials for toc (#296)
Closes #257
Diffstat (limited to 'layouts/_default/baseof.html')
-rw-r--r--layouts/_default/baseof.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 3b0164c..e7ff71e 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -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>