From 6a137dbee7f42162dbe85662f522e8649c78b6f0 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Mon, 20 May 2019 23:40:25 +0100 Subject: [PATCH] Use speakerSessions function --- source/_includes/speaker-session.html.twig | 2 +- source/_layouts/speaker.html.twig | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/source/_includes/speaker-session.html.twig b/source/_includes/speaker-session.html.twig index 183829c..01633bc 100644 --- a/source/_includes/speaker-session.html.twig +++ b/source/_includes/speaker-session.html.twig @@ -1,4 +1,4 @@ -{% for session in sessions if speaker.name in session.speakers %} +{% for session in sessions %} {% if loop.first %}

Session

{% endif %} diff --git a/source/_layouts/speaker.html.twig b/source/_layouts/speaker.html.twig index 23871ec..b53fba9 100644 --- a/source/_layouts/speaker.html.twig +++ b/source/_layouts/speaker.html.twig @@ -44,10 +44,9 @@