From dc3ebafc14e00a5376187c8f39eca63147543495 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Mon, 20 May 2019 03:06:19 +0100 Subject: [PATCH] Add talk intro and count --- source/talks.html.twig | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/source/talks.html.twig b/source/talks.html.twig index feffa372..904211ec 100644 --- a/source/talks.html.twig +++ b/source/talks.html.twig @@ -25,13 +25,21 @@ talks: date: 2018-06-27 --- {% block content %} + {% set talks = getTalks(page.talks|merge(data.talks)) %} + {% set upcomingTalks = talks|upcoming %} + {% set pastTalks = talks|past %} + +
+

After giving my first talk in September 2012, I have now given {{ pastTalks|events|length }} presentations at various conferences and meetups, on topics including PHP, Drupal, Git, CSS and systems administration.

+
+
{% include 'talks/upcoming' with { - talks: getTalks(page.talks|merge(data.talks))|upcoming, + talks: upcomingTalks, } %} {% include 'talks/past' with { - talks: getTalks(page.talks|merge(data.talks))|past, + talks: pastTalks, } %}
{% endblock %}