15 lines
606 B
HTML
15 lines
606 B
HTML
{{- $open := cond .IsNamedParams (in (slice "true" true) (.Get "open")) (in .Params "open") -}}
|
|
{{- $attributes := partial "docs/text/mapper" (dict
|
|
"attributes" (cond .IsNamedParams .Params dict)
|
|
"merge" (dict "open" $open)
|
|
"delete" (cond $open (slice) (slice "open"))
|
|
) -}}
|
|
<details {{ partial "docs/html-attrs" $attributes | safeHTMLAttr }}>
|
|
{{- $summary := cond .IsNamedParams (.Get "title") (.Get 0) -}}
|
|
<summary>{{ $summary | .Page.RenderString }}</summary>
|
|
{{- /* remove whitespaces */ -}}
|
|
<div class="markdown-inner">
|
|
{{ .Inner | safeHTML -}}
|
|
</div></details>
|
|
{{- /* remove whitespaces */ -}}
|