Folding Module
Collapse long content blocks and reveal them on demand.
You can nest text, markdown, and other module tags in a folding block.
Demo

Recommended syntax
Use named arguments for better readability:
{% folding title="Click to expand" class="blue" open=true %}
Content goes here.
{% endfolding %}Named arguments
title: summary textclass/classes/style: extra classes on the<details>wrapperopen: default open state (1,true,yes,on)
Legacy syntax (compatible)
The legacy style is still supported:
{% folding blue::Click to expand %}
Content goes here.
{% endfolding %}Example
{% folding title="Folding test: click to view more" class="green" %}
This block supports nested modules.
{% callout type="danger" %}
Exercise caution when revealing this section.
{% endcallout %}
{% callout type="info" %}
You can also place helpful tips inside folding content.
{% endcallout %}
{% endfolding %}Common style classes
yellow, blue, green, red, orange, pink, cyan, white, black, gray, purpleMore
For a live experience, please visit the Redefine Demo Site.
Last updated on
