cullmann.io/themes/PaperMod/layouts/shortcodes/collapse.html

9 lines
298 B
HTML
Raw Normal View History

2022-10-21 21:09:12 +02:00
{{ 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>