Update talks page
This commit is contained in:
parent
d555d31e9d
commit
bf785395d4
|
@ -30,7 +30,7 @@ talks:
|
||||||
<h2 class="font-bold">Upcoming Talks</h2>
|
<h2 class="font-bold">Upcoming Talks</h2>
|
||||||
|
|
||||||
<div class="spaced-y-10">
|
<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' %}
|
{% include 'talks/talk' %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<p>Nothing scheduled at the moment.</p>
|
<p>Nothing scheduled at the moment.</p>
|
||||||
|
@ -42,7 +42,7 @@ talks:
|
||||||
<h2 class="font-bold">Previous Talks</h2>
|
<h2 class="font-bold">Previous Talks</h2>
|
||||||
|
|
||||||
<div class="spaced-y-10">
|
<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' %}
|
{% include 'talks/talk' %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -37,6 +37,8 @@ class TalksExtension extends AbstractExtension
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
new TwigFilter('events', [$this, 'getEvents']),
|
new TwigFilter('events', [$this, 'getEvents']),
|
||||||
|
new TwigFilter('past', [$this, 'filterPast']),
|
||||||
|
new TwigFilter('upcoming', [$this, 'filterUpcoming']),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue