2022-05-22 22:07:35 +02:00
|
|
|
{{- $format := default "html" (.Get "format") }}
|
2023-06-22 09:45:54 +02:00
|
|
|
{{- $tocLevels := default (default 6 .Site.Params.geekdocToC) .Page.Params.geekdocToC }}
|
2020-01-12 15:33:02 +01:00
|
|
|
|
2022-05-22 22:07:35 +02:00
|
|
|
{{- if and $tocLevels .Page.TableOfContents -}}
|
|
|
|
{{- if not (eq ($format | lower) "raw") -}}
|
|
|
|
<div class="gdoc-toc gdoc-toc__level--{{ $tocLevels }}">
|
|
|
|
{{ .Page.TableOfContents }}
|
|
|
|
<hr />
|
|
|
|
</div>
|
|
|
|
{{- else -}}
|
2022-01-06 13:58:10 +01:00
|
|
|
{{ .Page.TableOfContents }}
|
2022-05-22 22:07:35 +02:00
|
|
|
{{- end -}}
|
|
|
|
{{- end -}}
|