This repository has been archived on 2024-11-13. You can view files and clone it, but cannot push or open issues or pull requests.
fediversity_website/themes/nluug/layouts/calendar/single.html

26 lines
1.1 KiB
HTML
Raw Normal View History

{{ 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)) }}
<div style="border: 1px solid darkgray; border-radius: 2px; padding:10px; margin:2px;">
<h3>{{ .name }}</h3>
{{ with .organizer }}<p><em>Georganizeerd door {{ .}}</em></p>{{ end }}
{{ if eq .date_start .date_end }}
{{ .date_start | dateFormat "02-01-2006" }}
{{ else }}
Van {{ .date_start | dateFormat "02-01-2006" }} t/m {{ .date_end | dateFormat "02-01-2006" }}
{{ end }}
2023-05-16 09:40:02 +02:00
{{ with .event_address }}
<p><strong>Adres</strong>: {{ with .street_address }}{{ . }}{{ end }}{{ with .postal_code }}, {{ . }}{{ end }}{{ with .city }}, {{ . }}{{ end }}{{ with .country }}, {{ . }}{{ end }}</p>
{{ end }}
{{ with .link_external }}
<a href="{{ . }}" rel="nofollow">Meer informatie (externe link)</a>
{{ end }}
</div>
{{ end }}
{{ end }}