p.d-legal/themes/hugo-book/layouts/shortcodes/details.html

8 lines
281 B
HTML
Raw Permalink Normal View History

2024-02-26 08:25:11 +00:00
<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>