From af1b3d9eaf582ce80b06caf173512a1e4b176784 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 3 Jan 2024 20:00:00 +0000 Subject: [PATCH] Show filtered testimonials by name --- source/_includes/testimonials.html.twig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/_includes/testimonials.html.twig b/source/_includes/testimonials.html.twig index 85ced0005..7eb7f12a2 100644 --- a/source/_includes/testimonials.html.twig +++ b/source/_includes/testimonials.html.twig @@ -2,7 +2,7 @@

{{ title|default('Testimonials') }}

- {% for testimonial in site.testimonials %} + {% for testimonial in site.testimonials|filter(testimonial => names is null or testimonial.name in names) %}
@@ -15,10 +15,10 @@ {% if testimonial.url %} - {{ testimonial.name }}, {{ testimonial.title }} + {{ testimonial.name }} - {{ testimonial.title }} {% else %} - {{ testimonial.name }}, {{ testimonial.title }} + {{ testimonial.name }} - {{ testimonial.title }} {% endif %}