diff --git a/themes/nluug/layouts/evenementen/list.html b/themes/nluug/layouts/evenementen/list.html index 71c5983..016c522 100644 --- a/themes/nluug/layouts/evenementen/list.html +++ b/themes/nluug/layouts/evenementen/list.html @@ -1,7 +1,30 @@ {{ define "main" }} + + {{ $.Scratch.Set "highlighted_events" slice }} + + {{ range .Pages }} + {{ if isset .Params "event_start" }} + {{ $event_start := .Params.event_start | time }} + + {{ if le now $event_start }} + {{ $.Scratch.Add "highlighted_events" . }} + {{ end }} + {{ end }} + {{ end }} + + {{ if (gt ($.Scratch.Get "highlighted_events" | len) 0) }} +
De Call for Proposals opent op {{ .Params.event_cfp_start_date | time.Format ":date_full" }}.
+ {{ else }} + {{ if .Params.event_cfp_end_date }} + {{ $event_cfp_end_date := .Params.event_cfp_end_date | time }} + {{ if ge now $event_cfp_end_date }} +De Call for Proposals is gesloten na {{ $event_cfp_end_date }}. Mocht je toch nog een inzending hebben, neem dan contact op met de programmacommissie.
+ {{ else }} +CFP: Actief
Naar CFP + {{ end }} + {{ else }} +CFP: Actief
Naar CFP + {{ end }} + {{ end }} + {{ end }} + {{ end }} + {{ end }} + + +{{ .Params.event_address.street_address }}
{{ .Params.event_address.postal_code }}, {{ .Params.event_address.city }}
{{ .Params.event_address.country_name }}
Dit evenement {{ if ge now $event_start }}vond{{ else }}vindt{{ end}} plaats op {{ .Params.event_start | time.Format ":date_full" }} ({{ .Params.event_start | time.Format "15:04" }}-{{ .Params.event_end | time.Format "15:04" }}).
+ {{ else }} +