Different sort order on talk pages
This commit is contained in:
parent
87e3cd13a3
commit
0187f273ed
|
@ -7,7 +7,8 @@
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for event in events|sortbyfield('date')|reverse %}
|
{% set events = reverse_order ? events|sortbyfield('date')|reverse : events|sortbyfield('date') %}
|
||||||
|
{% for event in events %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
{{ event.date|date('j F Y') }}
|
{{ event.date|date('j F Y') }}
|
||||||
|
|
|
@ -20,4 +20,4 @@ use: [talks, posts]
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% include "talks-table" with { events: events, show_talk: true } %}
|
{% include "talks-table" with { events: events, show_talk: true, reverse_order: true } %}
|
||||||
|
|
Loading…
Reference in a new issue