From af9674bd720364b00eeada1f592189fb0377153e Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sat, 28 Oct 2017 12:17:25 +0100 Subject: [PATCH] Add empty text if there are no upcoming events --- source/talks.html.twig | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/talks.html.twig b/source/talks.html.twig index 88e9de7b..f0838963 100644 --- a/source/talks.html.twig +++ b/source/talks.html.twig @@ -10,11 +10,13 @@ use: [talks] {% set data = { talks: data.talks, events: site.events } %} +

Upcoming Talks

+ {% set upcoming_talks = data|format_talks(true) %} {% if upcoming_talks %} -

Upcoming Talks

- {% include "talks-table" with { talks: upcoming_talks } %} + {% else %} +

Nothing scheduled at the moment.

{% endif %}

Last 5 Talks