summaryrefslogtreecommitdiff
path: root/content/docs/shortcodes/details.md
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2024-09-07 23:26:41 -0400
committerBenjamin Chausse <benjamin@chausse.xyz>2024-09-07 23:26:41 -0400
commitca851a0933a3c3da7440eec9a90a33b18f4c9dc5 (patch)
tree024bd2f1881c8314c23effb031a1f7fd6e05db3e /content/docs/shortcodes/details.md
Batman
Diffstat (limited to 'content/docs/shortcodes/details.md')
-rw-r--r--content/docs/shortcodes/details.md22
1 files changed, 22 insertions, 0 deletions
diff --git a/content/docs/shortcodes/details.md b/content/docs/shortcodes/details.md
new file mode 100644
index 0000000..248bafd
--- /dev/null
+++ b/content/docs/shortcodes/details.md
@@ -0,0 +1,22 @@
+# Details
+
+Details shortcode is a helper for `details` html5 element. It is going to replace `expand` shortcode.
+
+## Example
+```tpl
+{{</* details "Title" [open] */>}}
+## Markdown content
+Lorem markdownum insigne...
+{{</* /details */>}}
+```
+```tpl
+{{</* details title="Title" open=true */>}}
+## Markdown content
+Lorem markdownum insigne...
+{{</* /details */>}}
+```
+
+{{< details "Title" open >}}
+## Markdown content
+Lorem markdownum insigne...
+{{< /details >}}