Folding 折叠模块
将较长内容折叠展示,按需展开阅读。
可以在折叠块中嵌套文字、Markdown,或其他模块标签。
效果

推荐写法
推荐使用命名参数,可读性更好:
{% folding title="点击展开" class="blue" open=true %}
需要展示的内容
{% endfolding %}命名参数
title:折叠标题class/classes/style:添加到<details>外层的额外类名open:默认展开(支持1、true、yes、on)
旧写法(仍兼容)
旧的 颜色::标题 写法仍可用:
{% folding blue::点击展开 %}
需要展示的内容
{% endfolding %}示例
{% folding title="Folding 测试:点击查看更多" class="green" %}
这里可以放普通文字,也可以嵌套其他模块。
{% callout type="danger" %}
danger 提示块标签
{% endcallout %}
{% callout type="info" %}
info 提示块标签
{% endcallout %}
{% endfolding %}常用样式类名
yellow, blue, green, red, orange, pink, cyan, white, black, gray, purple更多
实际体验欢迎前往 Redefine 演示站点。
Last updated on
