From f58dea6bc66938b2efe05aba253bc7cb0861e409 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sun, 14 Jan 2024 15:21:06 +0000 Subject: [PATCH] Add Mattieu Scarset to the Home page --- source/_includes/testimonials.html.twig | 7 ++++++- source/_pages/index.md | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/source/_includes/testimonials.html.twig b/source/_includes/testimonials.html.twig index c0b41e49f..cf45ba21b 100644 --- a/source/_includes/testimonials.html.twig +++ b/source/_includes/testimonials.html.twig @@ -1,4 +1,5 @@ {% set defaultNames = [ + "Matthieu Scarset", "Mike Karthauser", "Tawny Bartlett", "Joe Howell", @@ -19,7 +20,11 @@ "Anonymous", ] %} -{% set names = names|default(defaultNames) %} +{% if not merge %} + {% set names = names|default(defaultNames) %} +{% else %} + {% set names = names|merge(defaultNames) %} +{% endif %}

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

diff --git a/source/_pages/index.md b/source/_pages/index.md index c41a606fd..aaeeec3cd 100644 --- a/source/_pages/index.md +++ b/source/_pages/index.md @@ -33,6 +33,8 @@ Here are all of my [products and services][pricing]. If you still can't find wha {% block content_bottom %} {% include 'testimonials.html.twig' with { title: 'Kind words from clients, subscribers, and past colleagues', + merge: true, + names: ["Matthieu Scarset"], } %} {% include 'daily-email-form.html.twig' with {