hugo-theme-hilfe/layouts/shortcodes/toc.html
2020-04-15 01:09:53 +02:00

5 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 }}