diff options
Diffstat (limited to 'layouts/partials/docs/toc.html')
-rw-r--r-- | layouts/partials/docs/toc.html | 6 |
1 files changed, 5 insertions, 1 deletions
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 }} |