Details (Collapsible)
Academy theme details/collapsible shortcode.
1 minute read
The academy-theme details shortcode renders a collapsible content block.
{{< details summary="Click to expand" open="true" >}}
Collapsed content here. Supports **Markdown**.
{{< /details >}}
Parameters:
| Parameter | Description | Default |
|---|---|---|
summary | Clickable summary text | (empty) |
open | Set to "true" to start expanded | collapsed |
Expanded by default:
Academy theme details (open)
This is the academy-theme implementation of the details shortcode. It starts expanded because open="true" is set.
- Supports Markdown formatting
- Lists,
code, and emphasis all render correctly
Collapsed by default:
Click to reveal hidden content
This content was hidden until you clicked the summary. The
details shortcode is useful for FAQs, optional information, or reducing page length.