Post order
This commit is contained in:
parent
a418702432
commit
e9fdea4f5a
|
@ -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 %}
|
||||
<h2>Zukünftige</h2>
|
||||
{% 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 %}
|
||||
<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>
|
||||
{{ event.excerpt }}
|
||||
{% endfor %}
|
||||
|
|
Loading…
Reference in New Issue
Block a user