From 97cb0b3130e38ec7bf0ee122578a8fb79e89cba5 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 11 Jan 2024 19:21:14 +0000 Subject: [PATCH] Hide location if there isn't one --- source/_layouts/talk.html.twig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/_layouts/talk.html.twig b/source/_layouts/talk.html.twig index 49dec661..2c889e3e 100644 --- a/source/_layouts/talk.html.twig +++ b/source/_layouts/talk.html.twig @@ -40,7 +40,10 @@ {{ event.name }} {% endif %} - in {{ event.location }} + {% if event.location %} + in {{ event.location }} + {% endif %} + - {{ event.date|date('F jS, Y') }} {{ event.online ? '(online)' }}