1
0
Fork 0
hugo-paper/layouts/shortcodes/collapse.html

10 lines
401 B
HTML
Raw Normal View History

2021-08-23 21:59:02 +02:00
<!---->{{ if not (.Get "summary") }}
<!---->{{ errorf "missing param 'summary': %s" .Position }}
<!---->{{ else if not (.Get "content") }}{{ warnf "missing param 'content': %s" .Position }}
<!---->{{ end }}
2021-08-20 13:21:20 +02:00
2021-08-23 21:59:02 +02:00
<details {{ if (eq (.Get `openByDefault`) true) }}open="true" {{ end }}>
<summary markdown="span">{{ .Get "summary" | markdownify }}</summary>
{{ .Get "content" | markdownify }}
</details>