feat(testimonials): améliorer la gestion des descriptions avec un format flexible
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user