summaryrefslogtreecommitdiff
path: root/layouts
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
parenta12baf0e01646e597c49ec5ee15819481d9f3b8d (diff)
Add before and after partials for toc (#296)
Closes #257
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/baseof.html6
-rw-r--r--layouts/partials/docs/inject/toc-after.html0
-rw-r--r--layouts/partials/docs/inject/toc-before.html0
3 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>
diff --git a/layouts/partials/docs/inject/toc-after.html b/layouts/partials/docs/inject/toc-after.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/layouts/partials/docs/inject/toc-after.html
diff --git a/layouts/partials/docs/inject/toc-before.html b/layouts/partials/docs/inject/toc-before.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/layouts/partials/docs/inject/toc-before.html