Update talks page

This commit is contained in:
Oliver Davies 2019-05-20 02:05:00 +01:00
parent d555d31e9d
commit bf785395d4
2 changed files with 4 additions and 2 deletions

View file

@ -30,7 +30,7 @@ talks:
<h2 class="font-bold">Upcoming Talks</h2>
<div class="spaced-y-10">
{% for talk in getUpcomingTalks(page.talks|merge(data.talks)) %}
{% for talk in getTalks(page.talks|merge(data.talks))|upcoming %}
{% include 'talks/talk' %}
{% else %}
<p>Nothing scheduled at the moment.</p>
@ -42,7 +42,7 @@ talks:
<h2 class="font-bold">Previous Talks</h2>
<div class="spaced-y-10">
{% 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 %}
</div>

View file

@ -37,6 +37,8 @@ class TalksExtension extends AbstractExtension
{
return [
new TwigFilter('events', [$this, 'getEvents']),
new TwigFilter('past', [$this, 'filterPast']),
new TwigFilter('upcoming', [$this, 'filterUpcoming']),
];
}