From 0976cf7641ea7bfc30266faee99b5784f81ad64d Mon Sep 17 00:00:00 2001
From: alexisben <alex@noesya.coop>
Date: Tue, 2 Apr 2024 10:09:46 +0200
Subject: [PATCH] fix

---
 layouts/partials/blocks/templates/gallery/large.html | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/layouts/partials/blocks/templates/gallery/large.html b/layouts/partials/blocks/templates/gallery/large.html
index 4506ae07..f45afdc5 100644
--- a/layouts/partials/blocks/templates/gallery/large.html
+++ b/layouts/partials/blocks/templates/gallery/large.html
@@ -1,10 +1,4 @@
-{{- $has_text := false -}}
-{{- range .images }}
-  {{- if .text }}
-    {{- $has_text = true -}}
-  {{ end -}}
-{{ end -}}
-<div class="gallery{{- if $has_text }} gallery--with-text {{ end -}}">
+<div class="gallery">
   {{ range .images }}
     {{ if .id }}
       {{- $image := partial "GetMedia" .id -}}
@@ -24,6 +18,7 @@
             {{ else if or .text .credit }}
               {{ $lightbox_text = or .text .credit }}
             {{ end }}
+            
             <a  class="glightbox"
                 role="button"
                 data-glightbox="type: image; {{ with $lightbox_text }}description: {{ . | safeHTML }}{{ end }}"
-- 
GitLab