Fix voor tonen evenementen (die vandaag zijn)

This commit is contained in:
Michael Boelen 2024-03-04 18:51:15 +00:00
parent fe7c3705d1
commit 34eca59022

View file

@ -23,8 +23,9 @@
<h2>Aankomende evenementen</h2>
<div class="three-column-grid">
{{ range $upcoming_events }}
{{ $date_start := .date_start | time }}
{{ if ge $date_start now }}
{{ $date_start := .date_start | time.Format "2006-01-02" }}
{{ $t := time.Now | time.Format "2006-01-02" }}
{{ if ge $date_start $t }}
{{ if eq .highlight_on_homepage true }}
<div class="highlight-box highlight-box-{{ if .nluug_event }}nluug{{ else }}other{{end }}">
<h3>{{ .name }}</h3>