diff --git a/static/afbeeldingen/iconen/map-location-dot.svg b/static/afbeeldingen/iconen/map-location-dot.svg new file mode 100644 index 0000000..3621fca --- /dev/null +++ b/static/afbeeldingen/iconen/map-location-dot.svg @@ -0,0 +1 @@ + diff --git a/themes/nluug/layouts/calendar/single.html b/themes/nluug/layouts/calendar/single.html index 1663575..3d80a8c 100644 --- a/themes/nluug/layouts/calendar/single.html +++ b/themes/nluug/layouts/calendar/single.html @@ -6,19 +6,19 @@ {{ $upcoming_events := sort $upcoming_events ".date_start" "asc" }} {{ range first 50 (where $upcoming_events "date_start" "gt" (dateFormat "2006-01-02" now)) }}
-

{{ .name }}

+

{{ .date_start | dateFormat "02-01-2006" }} - {{ .name }}

{{ with .organizer }}

Georganizeerd door {{ .}}

{{ 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" }} + {{ if ne .date_start .date_end }} +

Event van meerdere dagen: {{ .date_start | dateFormat "02-01-2006" }} t/m {{ .date_end | dateFormat "02-01-2006" }}

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

Adres: {{ with .street_address }}{{ . }}{{ end }}{{ with .postal_code }}, {{ . }}{{ end }}{{ with .city }}, {{ . }}{{ end }}{{ with .country }}, {{ . }}{{ end }}

+

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") }} {{ end }} {{ with .link_external }} - Meer informatie (externe link) +

» Meer informatie (externe link)

{{ end }}
{{ end }} diff --git a/themes/nluug/layouts/partials/show-svg-icon.html b/themes/nluug/layouts/partials/show-svg-icon.html new file mode 100644 index 0000000..aa1a37b --- /dev/null +++ b/themes/nluug/layouts/partials/show-svg-icon.html @@ -0,0 +1 @@ +{{ .icon | default .Site.Params.textNoTitle }}