fix date sorting
Some checks failed
website-main / prod-build (push) Failing after 14s
website-main / test-build (push) Failing after 6s

This commit is contained in:
2024-03-24 16:11:29 +01:00
parent 1287ea1d51
commit 942ef76fc9
5 changed files with 7 additions and 7 deletions

View File

@ -224,8 +224,8 @@
{{ with .Site.GetPage "/termine/_index.md" }}
{{ $events := slice }}
{{ range .Params.events }}
{{ if or (ge (.date | time.AsTime).Unix now.Unix) (and .enddate (ge (.enddate | time.AsTime).Unix now.Unix)) }}
{{ range sort .Params.events ".date" }}
{{ if partial "data/termin-upcoming" . }}
{{ $events = $events | append . }}
{{ end }}
{{ end }}