blog/layouts/shortcodes/spoiler.html

6 lines
129 B
HTML
Raw Permalink Normal View History

2021-01-23 16:08:01 +01:00
{{- $title := .Get "title" | default (.Get 0) -}}
<details>
<summary>{{ $title }}</summary>
<p>{{.Inner}}</p>
</details>