diff options
author | Alex Shpak <alex-shpak@users.noreply.github.com> | 2020-04-21 22:30:00 +0200 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2020-04-21 22:30:00 +0200 |
commit | 66968582ef45a1c3c38f47477096e9417a774ce9 (patch) | |
tree | 4b675790dc85500027d557c2fa24581c26eda744 /layouts/shortcodes/details.html | |
parent | b88d5f6b12fa9ac179ed8f54c00acbd747a6546f (diff) |
#205, Add details shortcode
Diffstat (limited to 'layouts/shortcodes/details.html')
-rw-r--r-- | layouts/shortcodes/details.html | 6 |
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> |