From 2687e34ac095411f0517d97f9ca2cc841d664b29 Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Mon, 20 Oct 2025 00:07:08 +0200 Subject: [PATCH] #782, Fix open attribute on details shorcode, delete when false --- layouts/_shortcodes/details.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) -}}