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
@@ -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">