We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0294205 commit 0b6b4f1Copy full SHA for 0b6b4f1
README.md
@@ -44,6 +44,7 @@ This theme contains the following custom shorcodes:
44
**Formatting**:
45
46
- collapse.html - Make a collapsible section.
47
+- details-disclosure.html - Renders information inside a toggleable element (open by default but can be toggled in/out of visibility).
48
- comment.html - Insert a comment that won't be rendered at build time.
49
- raw-html.html - Insert raw HTML into a markdown doc.
50
layouts/shortcodes/details-disclosure.html
@@ -0,0 +1,5 @@
1
+{{ $summary := .Get "summary"}}
2
+<details open>
3
+ <summary>{{ $summary }}</summary>
4
+ {{ .Inner | markdownify }}
5
+</details>
0 commit comments