summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/baseof.html10
-rw-r--r--layouts/partials/docs/toc.html2
2 files changed, 7 insertions, 5 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index e7ff71e..8974985 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -12,7 +12,9 @@
<input type="checkbox" class="hidden toggle" id="toc-control" />
<main class="container flex">
<aside class="book-menu">
- {{ template "menu" . }} <!-- Left menu Content -->
+ <div class="book-menu-content">
+ {{ template "menu" . }} <!-- Left menu Content -->
+ </div>
</aside>
<div class="book-page">
@@ -36,11 +38,9 @@
{{ if default true (default .Site.Params.BookToC .Params.BookToC) }}
<aside class="book-toc">
- <nav>
- {{ partial "docs/inject/toc-before" . }}
+ <div class="book-toc-content">
{{ template "toc" . }} <!-- Table of Contents -->
- {{ partial "docs/inject/toc-after" . }}
- </nav>
+ </div>
</aside>
{{ end }}
</main>
diff --git a/layouts/partials/docs/toc.html b/layouts/partials/docs/toc.html
index 64546ec..64697a4 100644
--- a/layouts/partials/docs/toc.html
+++ b/layouts/partials/docs/toc.html
@@ -1 +1,3 @@
+{{ partial "docs/inject/toc-before" . }}
{{ .TableOfContents }}
+{{ partial "docs/inject/toc-after" . }}