Markdown versions of all docs pages are available by appending .md to any docs URL.
details
Renders a collapsible details and summary block, closed by default
Either call form works, and both produce identical HTML.
Note
This shortcode shadows Hextra’s details, so its behavior differs from the upstream one of the same name. See the Hextra shortcodes guide for the baseline.
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
title | string | yes | — | The clickable summary heading. Supports Markdown. |
open | bool | no | false | Pass open=“true” to render the block expanded on page load. |
Example
{{< details title="Show the full output" >}}
The body appears only after the reader clicks the summary.
{{< /details >}}Rendered output
Show the full output
Notes
The default state is closed, which deliberately inverts Hextra’s default-open behavior. Collapsed-by-default is the conservative choice for docs: a details block means “click to reveal extra info”, not “always visible”.
Hextra’s upstream takes the inverted closed="true" to close. This
shortcode does not read that param. Existing consumer content uses
open="true" to open, and a stray closed="true" becomes a no-op that
still renders correctly, since closed is already the default.
Source: layouts/_shortcodes/details.html