ar.falsy.cat/layouts/partials/toc.html

9 lines
288 B
HTML
Raw Normal View History

2022-04-05 06:25:24 +00:00
{{ if (and $.Site.Data.config.enableToc (ne .Params.enableToc false) (gt .WordCount 250)) }}
<aside class="mainTOC">
<details {{ if $.Site.Data.config.openToc }}open {{ end }}>
<summary>{{ i18n "toc" }}</summary>
2022-04-05 06:25:24 +00:00
{{ .TableOfContents }}
</details>
</aside>
{{end}}