From 204916c9dc9d31443e2e364b9855fdd5a47809c4 Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Tue, 16 May 2023 10:27:43 +0200 Subject: [PATCH] Verbeterde opmaak kalender inclusief link naar OpenStreetMap --- static/afbeeldingen/iconen/map-location-dot.svg | 1 + themes/nluug/layouts/calendar/single.html | 16 ++++++++-------- themes/nluug/layouts/partials/show-svg-icon.html | 1 + 3 files changed, 10 insertions(+), 8 deletions(-) create mode 100644 static/afbeeldingen/iconen/map-location-dot.svg create mode 100644 themes/nluug/layouts/partials/show-svg-icon.html 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 }}