Sort events by date
This commit is contained in:
parent
3847f56beb
commit
26ceec5f20
|
@ -7,7 +7,7 @@
|
||||||
<h2>Events</h2>
|
<h2>Events</h2>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
{% for event in events %}
|
{% for event in events|sort((a, b) => a.date < b.date) %}
|
||||||
<li>
|
<li>
|
||||||
{% if event.url %}
|
{% if event.url %}
|
||||||
<a href="{{ event.url }}">{{ event.name }}</a>
|
<a href="{{ event.url }}">{{ event.name }}</a>
|
||||||
|
|
Loading…
Reference in a new issue