aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorAlex Shpak <alex-shpak@users.noreply.github.com>2021-01-26 22:20:17 +0100
committerAlex Shpak <alex-shpak@users.noreply.github.com>2021-01-26 22:20:30 +0100
commitd9fe59a6e9104797e8e588e919ec7008d6204b8e (patch)
treec407f742bddd3b486f4e596ec6b4f46c4d8a6d2f /layouts
parent012ccee53d9154e4143f86ba40e492075db861ce (diff)
Refactor aside menus, add extra wrapper
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" . }}