add shortcode for collapsable section

This commit is contained in:
2024-07-05 02:05:55 -04:00
parent d2a3d53e54
commit f3c98b3e46
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,9 @@
{{- /*
Template comment syntax: https://hugo.d.balki.me/templates/introduction/#comments
collapsable section ref: https://stackoverflow.com/a/78475534
*/ -}}
<details>
<summary>{{ .Get "title" | default "Click to expand" | markdownify }}</summary>
<div>{{ .Inner | markdownify }}</div>
</details>