From bbe63672b9bb1c652fcec8ca375283dd3bf872dd Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Sat, 1 Jul 2023 11:34:14 +0200 Subject: [PATCH] Toevoegen van locatienaam aan Schema voor evenementenkalender --- themes/nluug/layouts/calendar/single.html | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/themes/nluug/layouts/calendar/single.html b/themes/nluug/layouts/calendar/single.html index 2be46f9..2afa3cd 100644 --- a/themes/nluug/layouts/calendar/single.html +++ b/themes/nluug/layouts/calendar/single.html @@ -35,16 +35,17 @@ "endDate": "{{ .date_end | dateFormat "02-01-2006" }}", "eventAttendanceMode": "https://schema.org/{{ if .event_attendance_mode }}{{ .event_attendance_mode | strings.FirstUpper }}{{ else }}Offline{{ end }}EventAttendanceMode", "eventStatus": "https://schema.org/EventScheduled", - {{ with .event_address }} + {{ if .event_address }} "location": { "@type": "Place", "address": { "@type": "PostalAddress", - {{ with .city }}"addressLocality": "{{ . }}",{{ end }} - {{ with .street_address }}"streetAddress": "{{ . }}",{{ end }} - {{ with .postal_code }}"postalCode": "{{ . }}",{{ end }} + {{ with .event_address.city }}"addressLocality": "{{ . }}",{{ end }} + {{ with .event_address.street_address }}"streetAddress": "{{ . }}",{{ end }} + {{ with .event_address.postal_code }}"postalCode": "{{ . }}",{{ end }} "addressCountry": "{{ if .country }}{{ .country }}{{ else }}The Netherlands{{ end }}" - } + }, + "name": "{{ .event_location | default "Niet ingevuld" }}" }, {{ end }} {{ if .event_virtual_location }}