Details#
Collapsible content using the HTML5 <details> element.
Syntax#
Positional arguments:
{{% details "Title" [open] %}}
Markdown content
{{% /details %}}Named parameters:
{{% details title="Title" open=true %}}
Markdown content
{{% /details %}}Example#
What Hugo version is required?
Hugo Book requires Hugo {x} or later, extended edition. The extended edition is needed for SCSS processing.
How do I override the theme?
Create matching files in your project’s layouts/ or assets/ directory. Hugo’s lookup order will use your files over the theme’s.
Parameters#
title(or first positional argument)- The summary text shown when collapsed.
open(or second positional argument)- Start expanded. Default: collapsed.