From 8538c95d0866ee181ce4f0a60a1469adde355f55 Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Fri, 16 Jun 2023 20:37:32 +0200 Subject: [PATCH] Sortering op event_start ipv datum van aanmaak --- themes/nluug/layouts/evenementen/list.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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