From e9fdea4f5a789eac2fcf25a0272c179886ba23fd Mon Sep 17 00:00:00 2001 From: Valentin Ochs Date: Sun, 19 Feb 2023 08:08:18 +0100 Subject: [PATCH] Post order --- events.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/events.md b/events.md index b7cd840..6cac3b3 100644 --- a/events.md +++ b/events.md @@ -3,7 +3,7 @@ title: "Veranstaltungen" 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 %}

Zukünftige

{% for event in events %} @@ -12,10 +12,10 @@ layout: default {% endfor %} {% 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 %}

Vergangene

-{% for event in events | sort: "date", "first" | where_exp:"event","event.date < site.time" %} +{% for event in events reversed %}

{{ event.title }}, {{ event.date | date: "%F" }}

{{ event.excerpt }} {% endfor %}