diff --git a/layouts/_shortcodes/details.html b/layouts/_shortcodes/details.html index 299254b..08a65ce 100644 --- a/layouts/_shortcodes/details.html +++ b/layouts/_shortcodes/details.html @@ -1,8 +1,8 @@ +{{- $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" (cond .IsNamedParams (.Get "open") (in .Params "open")) - ) + "merge" (dict "open" $open) + "delete" (cond $open (slice) (slice "open")) ) -}}
{{- $summary := cond .IsNamedParams (.Get "title") (.Get 0) -}}