summaryrefslogtreecommitdiff
path: root/themes/PaperMod/layouts/shortcodes/collapse.html
blob: 17d8d3bc23854a3e6cda35db1c58ae63f5db9f27 (plain)
1
2
3
4
5
6
7
8
{{ if .Get "summary" }}
{{ else }}
{{ warnf "missing value for param 'summary': %s" .Position }}
{{ end }}
<p><details {{ if (eq (.Get "openByDefault") true) }} open=true {{ end }}>
  <summary markdown="span">{{ .Get "summary" | markdownify }}</summary>
  {{ .Inner | markdownify }}
</details></p>