blob: c23b0cad305fda8864b4b110d8e4240e8e93cb88 (
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. */ -}}
|