diff options
-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..e308042 --- /dev/null +++ b/layouts/shortcodes/details.html @@ -0,0 +1,6 @@ +{{ $class := .Get "class" -}} +{{ $summary := .Get "summary" -}} +<details{{ with $class }} class="{{ . }}"{{ end }}> +{{ with $summary }}<summary>{{ . }}</summary>{{ end }} +{{ .Inner | markdownify }} +</details> |