From 8c77a325f66899d90a78dbd3bdef277e39fbff92 Mon Sep 17 00:00:00 2001 From: Boris Waaub Date: Mon, 9 Feb 2026 11:24:29 +0100 Subject: [PATCH] =?UTF-8?q?feat(testimonials):=20am=C3=A9liorer=20la=20ges?= =?UTF-8?q?tion=20des=20descriptions=20avec=20un=20format=20flexible?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/_index.md | 6 +++--- hugo.toml | 2 +- .../chill-theme/layouts/shortcodes/testimonials.html | 11 +++++++++-- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/content/_index.md b/content/_index.md index 74a3e07..0a105d6 100644 --- a/content/_index.md +++ b/content/_index.md @@ -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 >}} diff --git a/hugo.toml b/hugo.toml index 3e3fca7..fdf9bb7 100644 --- a/hugo.toml +++ b/hugo.toml @@ -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 diff --git a/themes/chill-theme/layouts/shortcodes/testimonials.html b/themes/chill-theme/layouts/shortcodes/testimonials.html index cedb388..f96587a 100644 --- a/themes/chill-theme/layouts/shortcodes/testimonials.html +++ b/themes/chill-theme/layouts/shortcodes/testimonials.html @@ -2,8 +2,15 @@
-

{{ .Get "title" | default (i18n "lovedByTeams") }}

-

{{ .Get "description" | default (i18n "testimonialsDescription") }}

+

{{ .Get "title" | default (i18n "lovedByTeams") }}

+ {{ $descriptions := .Get "descriptions" }} + {{ if $descriptions }} + {{ range (split $descriptions "||") }} +

{{ . | safeHTML }}

+ {{ end }} + {{ else }} +

{{ i18n "testimonialsDescription" }}

+ {{ end }}