Test Events
This commit is contained in:
parent
c490644f76
commit
4b79356fb3
19
events.md
19
events.md
|
@ -1,11 +1,22 @@
|
||||||
---
|
---
|
||||||
title: "Zukünftige Veranstaltungen"
|
title: "Veranstaltungen"
|
||||||
layout: default
|
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 %}
|
{% 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 }}
|
{{ event.excerpt }}
|
||||||
|
|
||||||
{% endfor %}
|
{% 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 %}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user