{{ define "main" }} {{ .Content }}

Aankomende evenementen

{{ $upcoming_events := .Site.Data.evenementen.kalender }} {{ $upcoming_events := sort $upcoming_events ".date_start" "asc" }}
{{ range first 50 (where $upcoming_events "date_start" "gt" (dateFormat "2006-01-02" now)) }}

{{ .name }}

{{ if .organizer }}Georganiseerd door {{ .organizer }}{{ end }} {{ if .event_organizer }}Georganiseerd door {{ if .event_organizer_url }}{{ .event_organizer }}{{ else }}{{ .event_organizer }}{{ end }}{{ end }} {{ if ne .date_start .date_end }}

Event van meerdere dagen: t/m

{{ else }}

Datum:

{{ end }} {{ $event_location := .event_location | default "Locatie onbekend" }} {{ with .event_address }}

Locatie en adres

{{ $event_location }}
{{ with .street_address }}{{ . }}{{ end }}
{{ with .postal_code }}{{ . }}{{ end }}{{ with .city }}, {{ . }}{{ end }}{{ with .country }}, {{ . }}{{ end }}

{{ partial "show-svg-icon.html" (dict "context" . "icon" "map-location-dot" "title" "Bekijk locatie op OpenStreetMap") }} {{ end }} {{ with .link_external }}

» Meer informatie (externe link)

{{ end }}
{{ end }}
{{ end }}