Post order

This commit is contained in:
Lynn Ochs 2023-02-19 08:08:18 +01:00
parent a418702432
commit e9fdea4f5a

View File

@ -3,7 +3,7 @@ title: "Veranstaltungen"
layout: default layout: default
--- ---
{% assign events = site.events | sort: "date", "first" | where_exp:"event","event.date >= site.time" %} {% assign events = site.events | sort: "date" | where_exp:"event","event.date >= site.time" %}
{% if events.size > 0 %} {% if events.size > 0 %}
<h2>Zukünftige</h2> <h2>Zukünftige</h2>
{% for event in events %} {% for event in events %}
@ -12,10 +12,10 @@ layout: default
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% assign events = site.events | sort: "date", "last" | where_exp:"event","event.date < site.time" %} {% assign events = site.events | sort: "date" | where_exp:"event","event.date < site.time" %}
{% if events.size > 0 %} {% if events.size > 0 %}
<h2>Vergangene</h2> <h2>Vergangene</h2>
{% for event in events | sort: "date", "first" | where_exp:"event","event.date < site.time" %} {% for event in events reversed %}
<h3><a href="{{ event.url }}">{{ event.title }}, {{ event.date | date: "%F" }}</a></h3> <h3><a href="{{ event.url }}">{{ event.title }}, {{ event.date | date: "%F" }}</a></h3>
{{ event.excerpt }} {{ event.excerpt }}
{% endfor %} {% endfor %}