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