diff options
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/docs/menu.html | 2 | ||||
-rw-r--r-- | layouts/partials/docs/mobile-header.html | 4 | ||||
-rw-r--r-- | layouts/partials/docs/toc.html | 6 |
3 files changed, 9 insertions, 3 deletions
diff --git a/layouts/partials/docs/menu.html b/layouts/partials/docs/menu.html index 6a72ac9..6e41096 100644 --- a/layouts/partials/docs/menu.html +++ b/layouts/partials/docs/menu.html @@ -1,4 +1,4 @@ -<nav> +<nav id="BookMenu"> {{ partial "docs/brand" . }} {{ partial "docs/search" . }} {{ partial "docs/inject/menu-before" . }} diff --git a/layouts/partials/docs/mobile-header.html b/layouts/partials/docs/mobile-header.html index b69f58c..4212a8e 100644 --- a/layouts/partials/docs/mobile-header.html +++ b/layouts/partials/docs/mobile-header.html @@ -1,6 +1,8 @@ <header class="flex align-center justify-between book-header"> - <label for="menu-control"> + <label id="menu-control" for="menu-control"> <img src="{{ "svg/menu.svg" | relURL }}" class="book-icon" alt="Menu" /> </label> + <label id="toc-control" for="toc-control"> <strong>{{ partial "docs/title" . }}</strong> + </label> </header> diff --git a/layouts/partials/docs/toc.html b/layouts/partials/docs/toc.html index 256a370..79bfc0a 100644 --- a/layouts/partials/docs/toc.html +++ b/layouts/partials/docs/toc.html @@ -1,6 +1,10 @@ {{ $tocLevels := default (default 6 .Site.Params.BookToC) .Params.BookToC }} {{ if and $tocLevels .Page.TableOfContents }} <aside class="book-toc levels-{{$tocLevels}} fixed"> - {{ .Page.TableOfContents }} + {{ with .Page.TableOfContents }} + <label id="toc-control" for="toc-control"> + {{ . }} + </label> + {{ end }} </aside> {{ end }} |