thedroth-rocks/themes/PaperMod/layouts/shortcodes/collapse.html
2023-10-26 09:44:01 +03:00

9 lines
298 B
HTML

{{ 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>