quartz/layouts/partials/toc.html
yshalsager 657985aacf
feat: Add internationalization (i18n) support
* Extract all strings into data/locale.toml files.
* Use data/config values from correct language file.
* Fix wrong lang attribute in some html layouts.
* Fix header direction in rtl.
* Fix footer text align in rtl.

Signed-off-by: yshalsager <ysh-alsager@hotmail.com>
2022-08-22 09:48:13 +02:00

9 lines
288 B
HTML

{{ 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>
{{ .TableOfContents }}
</details>
</aside>
{{end}}