Toevoegen van locatienaam aan Schema voor evenementenkalender

This commit is contained in:
Michael Boelen 2023-07-01 11:34:14 +02:00
parent cf1a33deeb
commit bbe63672b9

View file

@ -35,16 +35,17 @@
"endDate": "{{ .date_end | dateFormat "02-01-2006" }}", "endDate": "{{ .date_end | dateFormat "02-01-2006" }}",
"eventAttendanceMode": "https://schema.org/{{ if .event_attendance_mode }}{{ .event_attendance_mode | strings.FirstUpper }}{{ else }}Offline{{ end }}EventAttendanceMode", "eventAttendanceMode": "https://schema.org/{{ if .event_attendance_mode }}{{ .event_attendance_mode | strings.FirstUpper }}{{ else }}Offline{{ end }}EventAttendanceMode",
"eventStatus": "https://schema.org/EventScheduled", "eventStatus": "https://schema.org/EventScheduled",
{{ with .event_address }} {{ if .event_address }}
"location": { "location": {
"@type": "Place", "@type": "Place",
"address": { "address": {
"@type": "PostalAddress", "@type": "PostalAddress",
{{ with .city }}"addressLocality": "{{ . }}",{{ end }} {{ with .event_address.city }}"addressLocality": "{{ . }}",{{ end }}
{{ with .street_address }}"streetAddress": "{{ . }}",{{ end }} {{ with .event_address.street_address }}"streetAddress": "{{ . }}",{{ end }}
{{ with .postal_code }}"postalCode": "{{ . }}",{{ end }} {{ with .event_address.postal_code }}"postalCode": "{{ . }}",{{ end }}
"addressCountry": "{{ if .country }}{{ .country }}{{ else }}The Netherlands{{ end }}" "addressCountry": "{{ if .country }}{{ .country }}{{ else }}The Netherlands{{ end }}"
} },
"name": "{{ .event_location | default "Niet ingevuld" }}"
}, },
{{ end }} {{ end }}
{{ if .event_virtual_location }} {{ if .event_virtual_location }}