mirror of
https://github.com/thegeeklab/hugo-geekblog.git
synced 2024-11-18 11:10:39 +00:00
9 lines
260 B
HTML
9 lines
260 B
HTML
{{ $tocLevels := default (default 6 .Site.Params.geekblogToC) .Page.Params.geekblogToC }}
|
|
|
|
{{ if and $tocLevels .Page.TableOfContents }}
|
|
<div class="gblog-toc gblog-toc__level--{{ $tocLevels }}">
|
|
{{ .Page.TableOfContents }}
|
|
<hr />
|
|
</div>
|
|
{{ end }}
|