hugo-snotra/layouts/shortcodes/details.html

7 lines
194 B
HTML

<details {{ with .Get "class" }} class="{{ . }}"{{ end }}><summary>{{ .Get "title" }}</summary>
{{ if .Get "md" }}
{{ .Inner | markdownify }}
{{ else }}
{{ .Inner }}
{{ end }}
</details>