Files
HugoBlox-kit/modules/blox/layouts/_shortcodes/toc.html
T
George Cushen f4280ddb1c refactor: rename modules and update migration docs
BREAKING CHANGE
Module paths moved to `github.com/HugoBlox/kit` with new names:
- core `blox-tailwind` → `blox`
- analytics → `analytics`
- netlify → `integrations/netlify`
- slides (reveal) → `slides`
Update go.mod, module.yaml/params, scripts, tests, and v0.11 migration guide accordingly.
2026-01-02 20:59:48 +00:00

19 lines
635 B
HTML

{{/*
Docs: https://docs.hugoblox.com/reference/markdown/#table-of-contents
Parameters
----------
mobile_only : true/false (optional)
Hide TOC on desktop when TOC is shown in right sidebar?
is_open : true/false (optional)
Show the TOC in the open, expanded state?
*/}}
{{ $mobile_only := .Get "mobile_only" | default true }}
{{ $is_open := .Get "is_open" | default false }}
<details class="print:hidden {{with $mobile_only}}xl:hidden{{end}}" {{with $is_open}}open{{end}}>
<summary>{{ i18n "table_of_contents" }}</summary>
<div class="text-sm">
{{ $.Page.TableOfContents }}
</div>
</details>