aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/docs/toc.html
blob: 79bfc0a77cdab0f751a5908eb92b1d25e1dba9c4 (plain)
1
2
3
4
5
6
7
8
9
10
{{ $tocLevels := default (default 6 .Site.Params.BookToC) .Params.BookToC }}
{{ if and $tocLevels .Page.TableOfContents }}
  <aside class="book-toc levels-{{$tocLevels}} fixed">
    {{ with .Page.TableOfContents }}
    <label id="toc-control" for="toc-control">
    {{ . }}
    </label>
    {{ end }}
  </aside>
{{ end }}