2023-05-09 12:45:03 +02:00
{{ define "main" }}
{{ .Content }}
< h2 > Aankomende evenementen< / h2 >
{{ $upcoming_events := .Site.Data.evenementen.kalender }}
2023-05-16 09:40:02 +02:00
{{ $upcoming_events := sort $upcoming_events ".date_start" "asc" }}
{{ range first 50 (where $upcoming_events "date_start" "gt" (dateFormat "2006-01-02" now)) }}
2023-05-18 20:32:34 +02:00
< div id = "{{ anchorize (.date_start | dateFormat " 2006-01-02 " ) } } - { { anchorize . name } } " style = "border: 1px solid darkgray; border-radius: 2px; padding:10px; margin:2px;" >
2023-05-16 10:27:43 +02:00
< h3 > {{ .date_start | dateFormat "02-01-2006" }} - {{ .name }}< / h3 >
2023-05-16 09:40:02 +02:00
{{ with .organizer }}< p > < em > Georganizeerd door {{ .}}< / em > < / p > {{ end }}
2023-05-16 10:27:43 +02:00
{{ if ne .date_start .date_end }}
2023-05-17 20:58:16 +02:00
< p > Event van meerdere dagen: < time class = "g time" datetime = "{{ dateFormat " 2006-01-02 " . date_start } } " > {{ .date_start | dateFormat "02-01-2006" }}< / time > t/m < time class = "g time" datetime = "{{ dateFormat " 2006-01-02 " . date_end } } " > {{ .date_end | dateFormat "02-01-2006" }}< / time > < / p >
2023-05-09 12:45:03 +02:00
{{ end }}
2023-05-16 10:27:43 +02:00
{{ $event_location := .event_location | default "Locatie onbekend" }}
2023-05-16 09:40:02 +02:00
{{ with .event_address }}
2023-05-16 10:27:43 +02:00
< h4 > Locatie en adres< / h4 >
< p > < strong > {{ $event_location }}< / strong > < br > {{ with .street_address }}{{ . }}{{ end }}< br > {{ with .postal_code }}{{ . }}{{ end }}{{ with .city }}, {{ . }}{{ end }}{{ with .country }}, {{ . }}{{ end }}< / p >
2023-05-23 13:47:53 +02:00
< a href = "https://www.openstreetmap.org/search?query={{ with .street_address }}{{ . | urlquery }}{{ end }},{{ with .postal_code }}{{ . | urlquery }}{{ end }}{{ with .city }},%20{{ . | urlquery }}{{ end }}" target = "_blank" rel = "noopener" > {{ partial "show-svg-icon.html" (dict "context" . "icon" "map-location-dot" "title" "Bekijk locatie op OpenStreetMap") }}< / a >
2023-05-16 09:40:02 +02:00
{{ end }}
{{ with .link_external }}
2023-05-16 10:27:43 +02:00
< p > » < a href = "{{ . }}" rel = "nofollow" > Meer informatie (externe link)< / a > < / p >
2023-05-16 09:40:02 +02:00
{{ end }}
< / div >
{{ end }}
2023-05-09 12:45:03 +02:00
{{ end }}