hugo-geekblog/layouts/shortcodes/toc.html

9 lines
260 B
HTML
Raw Permalink Normal View History

{{ $tocLevels := default (default 6 .Site.Params.geekblogToC) .Page.Params.geekblogToC }}
2020-07-06 18:55:32 +00:00
{{ if and $tocLevels .Page.TableOfContents }}
<div class="gblog-toc gblog-toc__level--{{ $tocLevels }}">
{{ .Page.TableOfContents }}
<hr />
</div>
2020-07-06 18:55:32 +00:00
{{ end }}