hugo-theme-hilfe/layouts/shortcodes/toc.html

6 lines
239 B
HTML
Raw Normal View History

2020-01-12 15:33:02 +01:00
{{ $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>
2020-01-12 15:33:02 +01:00
{{ end }}