blog/layouts/shortcodes/spoiler.html

6 lines
129 B
HTML

{{- $title := .Get "title" | default (.Get 0) -}}
<details>
<summary>{{ $title }}</summary>
<p>{{.Inner}}</p>
</details>