Website/events.md
2023-02-20 07:04:07 +01:00

23 lines
688 B
Markdown

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