Files
blog/themes/PaperMod/layouts/shortcodes/collapse.html
changsongd f18b114a90
All checks were successful
Gitea Actions Demo / build-and-deploy (push) Successful in 5m44s
add theme PaperMod
2025-05-27 20:06:18 +08: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>