Move past events to log; Sort upcoming events chronologically

This commit is contained in:
Stephan Messlinger 2021-11-03 02:56:33 +01:00
parent 0fc2ef945d
commit 708f4c9d2c
9 changed files with 3 additions and 2 deletions

View File

@ -1,9 +1,9 @@
--- ---
title: "Bevorstehende Veranstaltungen" title: "Zukünftige Veranstaltungen"
layout: default layout: default
--- ---
{% assign events = site.events | reverse %} {% assign events = site.events %}
{% for event in events %} {% for event in events %}
<h2><a href="{{ event.url }}">{{ event.title }}, {{ event.date | date: "%F" }}</a></h2> <h2><a href="{{ event.url }}">{{ event.title }}, {{ event.date | date: "%F" }}</a></h2>
{{ event.excerpt }} {{ event.excerpt }}

View File

@ -2,6 +2,7 @@
title: "/var/log" title: "/var/log"
layout: default layout: default
--- ---
{% assign posts = site.logs | reverse %} {% assign posts = site.logs | reverse %}
{% for post in posts %} {% for post in posts %}
<h2><a href="{{ post.url }}">{{ post.title }}, {{ post.date | date: "%F" }}</a></h2> <h2><a href="{{ post.url }}">{{ post.title }}, {{ post.date | date: "%F" }}</a></h2>