mirror of
https://github.com/thegeeklab/hugo-geekdoc.git
synced 2024-11-05 04:40:40 +00:00
6 lines
239 B
HTML
6 lines
239 B
HTML
{{ $tocLevels := default (default 6 .Site.Params.GeekdocToC) .Page.Params.GeekdocToC }}
|
|
|
|
{{ if and $tocLevels .Page.TableOfContents }}
|
|
<div class="gdoc-toc gdoc-toc__level--{{$tocLevels}}">{{ .Page.TableOfContents }}<hr></div>
|
|
{{ end }}
|