hugo-book/layouts/shortcodes/details.html
2024-10-02 12:02:41 +02:00

8 lines
289 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">
{{ .InnerDeindent | .Page.RenderString }}
</div>
</details>