hugo-book-theme/layouts/shortcodes/details.html

8 lines
281 B
HTML
Raw Normal View History

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