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

16 lines
423 B
HTML
Raw Normal View History

2020-08-14 13:08:09 +02:00
{{ if .Get "content" }}
{{ if .Get "summary" }}
{{ else }}
{{ warnf "missing value for param 'summary': %s" .Position }}
{{ end }}
{{ else }}
{{ errorf "missing value for param 'content': %s" .Position }}
{{ end }}
2021-08-20 13:21:20 +02:00
<p>
<details {{ if (eq (.Get "openByDefault") true) }}open=true{{ end }}>
<summary markdown="span">{{ .Get "summary" | markdownify }}</summary>
2020-08-14 13:08:09 +02:00
{{ .Get "content" | markdownify }}
2021-08-20 13:21:20 +02:00
</details>
</p>