aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/docs/toc.html
blob: 256a370c91e59ea7bfe3a4304b4d568ae0f7cffd (plain)
1
2
3
4
5
6
{{ $tocLevels := default (default 6 .Site.Params.BookToC) .Params.BookToC }}
{{ if and $tocLevels .Page.TableOfContents }}
  <aside class="book-toc levels-{{$tocLevels}} fixed">
    {{ .Page.TableOfContents }}
  </aside>
{{ end }}