From 2ec6327d85f07d748799df15963dcae1bf5e46da Mon Sep 17 00:00:00 2001 From: Robert Schuster Date: Tue, 18 Aug 2026 19:25:49 +0200 Subject: [PATCH] fix: only show booking section if true --- layouts/_shortcodes/booking-section.html | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/layouts/_shortcodes/booking-section.html b/layouts/_shortcodes/booking-section.html index b5b8ce337..0c9dd3308 100644 --- a/layouts/_shortcodes/booking-section.html +++ b/layouts/_shortcodes/booking-section.html @@ -1,11 +1,10 @@ {{- $sectionName := .Get 0 -}} {{- $bookingContext := .Page.Store.Get "booking_context" | default dict -}} {{- $sectionValue := index $bookingContext $sectionName | default "nil" -}} -{{- if or (eq $sectionValue false) (eq $sectionValue "nil") -}} - {{- return -}} +{{- if eq $sectionValue true -}} +
+ {{- .Inner | safeHTML -}} +
{{- end -}} -
- {{- .Inner | safeHTML -}} -