webpage/themes/hugo-book/layouts/shortcodes/details.html

8 lines
258 B
HTML
Raw Normal View History

2024-11-26 22:25:09 +00:00
<details {{ if or (.Get "open") (in .Params "open") }}open{{ end }}>
{{- $summary := cond .IsNamedParams (.Get "title") (.Get 0) -}}
<summary>{{ $summary }}</summary>
<div class="markdown-inner">
{{ .InnerDeindent | safeHTML }}
</div>
</details>