Files
hugo-book/exampleSite/content.en/docs/shortcodes/details.md
nick n. b7f9c8cb0f details shortcode: add example of both alternatives (#783)
* details shortcode: add example of both alternatives
readme: mention steps shortcode, move katex alpha order
steps: use 1. instead of fixed numbers

* roll back steps.md

* positional vs argument. bonus typo fix
2025-11-18 08:48:54 +01:00

706 B

Details

Details shortcode is a helper for details html5 element. To collapse the details either omit the open keyword when using positional arguments or set open=false when using parameters.

Example with positional arguments

{{%/* details "Title" [open] */%}}
## Markdown content
Lorem markdownum insigne...
{{%/* /details */%}}

{{% details "Title" open %}}

Markdown content

Lorem markdownum insigne... {{% /details %}}

Example with parameters

{{%/* details title="Title" open=true */%}}
## Markdown content
Lorem markdownum insigne...
{{%/* /details */%}}

{{% details title="Title" open=true %}}

Markdown content

Lorem markdownum insigne... {{% /details %}}