aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/docs/toc.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/docs/toc.html')
-rw-r--r--layouts/partials/docs/toc.html6
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 }}