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

11 lines
401 B
HTML
Raw Permalink Normal View History

2021-08-23 21:59:02 +02:00
<!---->{{ if not (.Get "summary") }}
<!---->{{ errorf "missing param 'summary': %s" .Position }}
2022-11-15 01:06:02 +01:00
<!---->{{ else if not (.Get "content") }}{{ warnf "missing param 'content': %s"
.Position }}
2021-08-23 21:59:02 +02:00
<!---->{{ 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>