blob: 2cc99c756ad604249a229f9671c93993ff060618 (
plain)
1
2
3
4
5
6
7
8
9
10
|
{{- $text := default "Content Warning: " (.Get "text" | default (.Get 0)) -}}
{{- if gt (len .Inner) 1 -}}
{{- $text = .Inner -}}
{{- end -}}
<details data-disclosure>
<summary>{{ (or $.Page.Params.title $text) | markdownify }}</summary>
</details>
{{- /* This comment removes trailing newlines and white spaces. */ -}}
|