Expand
The expand shortcode displays an expandable/collapsible section of text.
Usage
Markdown callout syntax is available in other Markdown parsers like Obsidian and therefore is the recommend syntax for generating portable Markdown.
The notice shortcode is also capable of displaying expandable/collapsible sections of text but with additional parameter for color and additional icons.
The theme supports Hugo’s built-in details shortcode by mapping the parameter to the theme’s expand shortcode.
Parameter
| Name | Position | Default | Notes |
|---|---|---|---|
| title | 1 | "Expand me..." |
Arbitrary text to appear next to the expand/collapse icon. |
| expanded | 2 | false |
How the content is displayed. - true: the content is initially shown- false: the content is initially hidden |
| <content> | <empty> | Arbitrary text to be displayed on expand. |