Cours-programmation/layouts/partials/toc.html

9 lines
289 B
HTML
Raw Permalink Normal View History

2022-04-09 22:14:01 +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>Table of Contents</summary>
{{ .TableOfContents }}
</details>
</aside>
{{end}}