amethyst/layouts/shortcodes/details.html
2023-01-01 23:41:14 +00:00

8 lines
281 B
HTML

<details {{ if or (.Get "open") (in .Params "open") }}open{{ end }}>
{{- $summary := cond .IsNamedParams (.Get "title") (.Get 0) -}}
<summary>{{ $summary | .Page.RenderString }}</summary>
<div class="markdown-inner">
{{ .Inner | .Page.RenderString }}
</div>
</details>