feat(testimonials): améliorer la gestion des descriptions avec un format flexible

This commit is contained in:
Boris Waaub
2026-02-09 11:24:29 +01:00
parent a221d16827
commit 8c77a325f6
3 changed files with 13 additions and 6 deletions

View File

@@ -114,12 +114,12 @@ testimonials:
]
}
{{< /features-carousel >}}
{{< cta >}}
{{< testimonials
title="Ils nous font confiance"
description="Découvrez comment CHILL améliore le quotidien de nos utilisateurs."
descriptions="Flexible et évolutif, CHILL accompagne aussi bien les petites associations que les grandes structures. Son développement participatif, mené avec des travailleurs sociaux de secteurs variés, garantit un outil fidèle aux réalités du terrain.||Découvrez leurs témoignages"
animate="true"
background-color="#f1f5f9"
>}}
{{< cta >}}

View File

@@ -90,7 +90,7 @@ pagination = { pagerSize = 6, path = "page" }
[params.cta]
enable = true
title = "Prêt à commencer ?"
description = "Tester Chill dès aujourd'hui et découvrez comment il peut transformer votre gestion sociale."
description = "Testez Chill dès aujourd'hui et découvrez comment il peut transformer votre gestion sociale."
# Gradient background
gradient_from = "#0d242e" # Blue-600

View File

@@ -2,8 +2,15 @@
<section class="section{{ if not $background_color }} bg-gray-50{{ end }}" {{ if $background_color }}style="background-color:{{ $background_color }};"{{ end }}>
<div class="container">
<div class="text-center max-w-3xl mx-auto mb-16">
<h2 class="text-3xl md:text-4xl font-bold mb-6">{{ .Get "title" | default (i18n "lovedByTeams") }}</h2>
<p class="text-xl text-gray-600">{{ .Get "description" | default (i18n "testimonialsDescription") }}</p>
<h2 class="text-3xl md:text-4xl font-bold mb-6">{{ .Get "title" | default (i18n "lovedByTeams") }}</h2>
{{ $descriptions := .Get "descriptions" }}
{{ if $descriptions }}
{{ range (split $descriptions "||") }}
<p class="text-xl text-gray-600">{{ . | safeHTML }}</p>
{{ end }}
{{ else }}
<p class="text-xl text-gray-600">{{ i18n "testimonialsDescription" }}</p>
{{ end }}
</div>
<div class="testimonials-container overflow-hidden">