mirror of
https://github.com/thegeeklab/hugo-geekblog.git
synced 2024-12-01 09:10:37 +00:00
6 lines
243 B
HTML
6 lines
243 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 }}
|