We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cec082b commit 2687e34Copy full SHA for 2687e34
layouts/_shortcodes/details.html
@@ -1,8 +1,8 @@
1
+{{- $open := cond .IsNamedParams (in (slice "true" true) (.Get "open")) (in .Params "open") -}}
2
{{- $attributes := partial "docs/text/mapper" (dict
3
"attributes" (cond .IsNamedParams .Params dict)
- "merge" (dict
4
- "open" (cond .IsNamedParams (.Get "open") (in .Params "open"))
5
- )
+ "merge" (dict "open" $open)
+ "delete" (cond $open (slice) (slice "open"))
6
) -}}
7
<details {{ partial "docs/html-attrs" $attributes | safeHTMLAttr }}>
8
{{- $summary := cond .IsNamedParams (.Get "title") (.Get 0) -}}
0 commit comments