hugo-book/layouts/shortcodes/details.html
2020-04-21 22:30:00 +02:00

7 lines
222 B
HTML

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