test-cross-blogger/themes/PaperMod/layouts/shortcodes/collapse.html

9 lines
298 B
HTML
Raw Permalink Normal View History

2024-06-25 15:51:17 +01: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>