mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-06 08:13:41 +00:00
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.
19 lines
635 B
HTML
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>
|