mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-05 14:14:41 +00:00
See https://discord.com/channels/722225264733716590/738924091511144489/1406144559188283494 See https://gohugo.io/templates/new-templatesystem-overview/
18 lines
687 B
HTML
18 lines
687 B
HTML
{{/*
|
|
Docs: https://docs.hugoblox.com/content/writing-markdown-latex/#table-of-contents
|
|
|
|
Parameters
|
|
----------
|
|
hide_on : optional
|
|
Hide TOC for a certain screen size.
|
|
For instance, with `hide_on="xl"`,
|
|
the in page TOC only appears when the right sidebar of the book layout is hidden.
|
|
show_on : optional
|
|
Same as above, but for showing the TOC only on certain screen size.
|
|
*/}}
|
|
|
|
<details class="toc-inpage d-print-none {{with .Get "hide_on"}}d-{{.}}-none{{end}} {{with .Get "show_on"}}d-none d-{{.}}-block{{end}}" open>
|
|
<summary class="font-weight-bold">{{ i18n "table_of_contents" }}</summary>
|
|
{{ $.Page.TableOfContents }}
|
|
</details>
|