From 90993284d5bce7b5cbedf405705009012011f4c1 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 6 Feb 2024 08:00:00 +0000 Subject: [PATCH] Only show if there are speakers --- .../speakers/recent-speakers.html.twig | 46 ++++++++++--------- 1 file changed, 24 insertions(+), 22 deletions(-) diff --git a/source/_includes/speakers/recent-speakers.html.twig b/source/_includes/speakers/recent-speakers.html.twig index 5563bce..ba3ba10 100644 --- a/source/_includes/speakers/recent-speakers.html.twig +++ b/source/_includes/speakers/recent-speakers.html.twig @@ -1,25 +1,27 @@ -
-

Speakers

+{% if speakers is not empty %} +
+

Speakers

-
-
- {% for speaker in speakers|sort((a, b) => a.name <=> b.name) %} - -
-
+
+{% endif %}