From c4b5070de6740fa0214861dc09f871bbf0b66cdf Mon Sep 17 00:00:00 2001 From: Alexis BENOIT Date: Thu, 22 Oct 2026 16:15:34 +0200 Subject: [PATCH] fix uniq testimonial --- layouts/_partials/blocks/templates/testimonials/list.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/_partials/blocks/templates/testimonials/list.html b/layouts/_partials/blocks/templates/testimonials/list.html index 052cca6ed..864630fc0 100644 --- a/layouts/_partials/blocks/templates/testimonials/list.html +++ b/layouts/_partials/blocks/templates/testimonials/list.html @@ -1,8 +1,8 @@ {{ if .testimonials }} {{ $layout := .layout }} {{ $attributes := "" }} - {{ if eq $layout "carousel" }} - {{ $attributes = printf "data-slider='%s'" ( site.Params.blocks.testimonials.slider | encoding.Jsonify ) }} + {{ if and (eq $layout "carousel") (gt .testimonials 1) }} + {{ $attributes = printf "data-slider='%s'" ( site.Params.blocks.testimonials.slider | encoding.Jsonify ) }} {{ end }}