diff --git a/source/talks.html.twig b/source/talks.html.twig
index 078fae8c..0ca26c06 100644
--- a/source/talks.html.twig
+++ b/source/talks.html.twig
@@ -30,7 +30,7 @@ talks:
- {% for talk in getUpcomingTalks(page.talks|merge(data.talks)) %}
+ {% for talk in getTalks(page.talks|merge(data.talks))|upcoming %}
{% include 'talks/talk' %}
{% else %}
Nothing scheduled at the moment.
@@ -42,7 +42,7 @@ talks:
Previous Talks
- {% for talk in getPastTalks(page.talks|merge(data.talks))|reverse %}
+ {% for talk in getTalks(page.talks|merge(data.talks))|past|reverse %}
{% include 'talks/talk' %}
{% endfor %}
diff --git a/src/Talks/src/TwigExtension/TalksExtension.php b/src/Talks/src/TwigExtension/TalksExtension.php
index 0e58bc89..651a633a 100644
--- a/src/Talks/src/TwigExtension/TalksExtension.php
+++ b/src/Talks/src/TwigExtension/TalksExtension.php
@@ -37,6 +37,8 @@ class TalksExtension extends AbstractExtension
{
return [
new TwigFilter('events', [$this, 'getEvents']),
+ new TwigFilter('past', [$this, 'filterPast']),
+ new TwigFilter('upcoming', [$this, 'filterUpcoming']),
];
}