2023-05-07 13:01:05 +02:00
{{ define "main" }}
2023-05-07 10:47:24 +02:00
{{ .Content }}
2023-05-07 13:01:05 +02:00
{{ if gt (len (where .Site.RegularPages "Section" "nieuws")) 0 }}
< h2 > Laatste nieuws< / h2 >
2023-05-05 16:36:10 +02:00
< section >
2023-05-07 14:04:54 +02:00
< ul reversed class = "list" >
2023-05-07 13:01:05 +02:00
{{ range (first 3 (where .Site.RegularPages "Section" "nieuws").ByDate.Reverse) }}
2023-05-07 14:04:54 +02:00
< li >
< a class = "link" href = "{{ .Permalink }}" title = "{{ .Title }}" > {{ .Title }}< / a >
< hr class = "hr-list" >
2023-05-10 10:40:18 +02:00
< time class = "g time" datetime = "{{ dateFormat " 2006-01-02 " . Date } } " > {{ dateFormat "02-01-2006" .Date }}< / time >
2023-05-07 14:04:54 +02:00
< / li >
{{ end }}
< / ul >
2023-05-05 16:36:10 +02:00
< / section >
2023-05-07 10:47:24 +02:00
{{ end }}
2023-05-07 13:01:05 +02:00
{{ if gt (len (.Site.Data.projecten.open)) 0 }}
< h2 > Lopende projecten< / h2 >
< ul >
{{ range $.Site.Data.projecten.open }}
< li > {{ .name }} ({{ .description_short }})< / li >
{{ end }}
< / ul >
< p > Op de pagina < a href = "/projecten/" > Projecten< / a > beschrijven we deze en andere projecten. Meehelpen? Contacteer een actief projectlid voor meer informatie.< / p >
{{ end }}
2023-05-09 12:45:03 +02:00
< h2 > Aankomende evenementen< / h2 >
2023-05-10 14:36:33 +02:00
2023-05-09 12:45:03 +02:00
{{ $upcoming_events := .Site.Data.evenementen.kalender }}
2023-05-10 10:40:18 +02:00
{{ $upcoming_events := sort $upcoming_events ".date_start" "asc" }}
2023-05-10 14:36:33 +02:00
{{ range $upcoming_events }}
{{ if eq .highlight_on_homepage true }}
< div class = "highlight-box" >
< div > < strong > {{ .name }}< / strong > < / div >
{{ with .date_start }}< p > Datum: {{ . }}< / p > {{ end }}
{{ with .event_address }}< p > Adres: {{ . }}< / p > {{ end }}
{{ with .event_url }}< a href = "{{ . }}" class = "button" > Meer informatie< / a > {{ end }}
< / div >
{{ end }}
{{ end }}
< p > Naast de door ons georganiseerde evenementen staat er meer op de agenda. Zie de uitgebreide evenementenkalender voor meer details.< / p >
2023-05-09 12:45:03 +02:00
< ul >
{{ range first 10 $upcoming_events }}
2023-05-10 10:40:18 +02:00
< li > {{ .date_start | dateFormat "02-01-2006" }} - {{ .name }}< / li >
2023-05-09 12:45:03 +02:00
{{ end }}
< / ul >
2023-05-10 14:36:33 +02:00
2023-05-07 10:47:24 +02:00
{{ end }}