From 3d6fd9878fc4d4efae1f9e1f9061d20128ffd300 Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Thu, 30 Nov 2023 14:52:50 +0100 Subject: [PATCH] Alleen events tonen die nog niet zijn geweest --- themes/nluug/layouts/index.html | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/themes/nluug/layouts/index.html b/themes/nluug/layouts/index.html index 9833b18..af95b6f 100644 --- a/themes/nluug/layouts/index.html +++ b/themes/nluug/layouts/index.html @@ -23,21 +23,24 @@

Aankomende evenementen

{{ range $upcoming_events }} - {{ if eq .highlight_on_homepage true }} -
-

{{ .name }}

-

Datum

- - {{ if .event_location }} -

Locatie
- {{ with .event_location }}{{ . }}
{{ end }} - {{ with .event_address }} - {{ with .street_address }}{{ . }}{{ end }}
{{ with .postal_code }}{{ . }}{{ end }}{{ with .city }}, {{ . }}{{ end }}{{ with .country }}, {{ . }}{{ end }} + {{ $date_start := .date_start | time }} + {{ if ge $date_start now }} + {{ if eq .highlight_on_homepage true }} +

+

{{ .name }}

+

Datum

+ + {{ if .event_location }} +

Locatie
+ {{ with .event_location }}{{ . }}
{{ end }} + {{ with .event_address }} + {{ with .street_address }}{{ . }}{{ end }}
{{ with .postal_code }}{{ . }}{{ end }}{{ with .city }}, {{ . }}{{ end }}{{ with .country }}, {{ . }}{{ end }} + {{ end }} +

{{ end }} -

- {{ end }} - {{ with .event_url }}Meer informatie{{ end }} -
+ {{ with .event_url }}Meer informatie{{ end }} +
+ {{ end }} {{ end }} {{ end }}