diff --git a/themes/nluug/layouts/evenementen/list.html b/themes/nluug/layouts/evenementen/list.html index 016c522..d11c452 100644 --- a/themes/nluug/layouts/evenementen/list.html +++ b/themes/nluug/layouts/evenementen/list.html @@ -2,10 +2,9 @@ {{ $.Scratch.Set "highlighted_events" slice }} - {{ range .Pages }} + {{ range (.Pages.ByParam "event_start").Reverse }} {{ if isset .Params "event_start" }} {{ $event_start := .Params.event_start | time }} - {{ if le now $event_start }} {{ $.Scratch.Add "highlighted_events" . }} {{ end }} @@ -24,7 +23,7 @@

Overzicht