summaryrefslogtreecommitdiff
path: root/layouts/shortcodes/details.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/shortcodes/details.html')
-rw-r--r--layouts/shortcodes/details.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/layouts/shortcodes/details.html b/layouts/shortcodes/details.html
new file mode 100644
index 0000000..f6fff38
--- /dev/null
+++ b/layouts/shortcodes/details.html
@@ -0,0 +1,6 @@
+<details {{ if or (.Get "open") (in .Params "open") }}open{{ end }}>
+ <summary>{{ cond .IsNamedParams (.Get "title") (.Get 0) }}</summary>
+ <div class="markdown-inner">
+ {{ .Inner | markdownify }}
+ </div>
+</details>