Test Events

This commit is contained in:
Lynn Ochs 2023-02-19 07:50:30 +01:00
parent c490644f76
commit 4b79356fb3

View File

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