From 44168d099892e3d152c701f2ba73b7b289e3a309 Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Sun, 20 Oct 2024 17:59:59 +0000 Subject: [PATCH] Adding 'image' to event and subevent types --- themes/nluug/layouts/partials/schemas/schema_Event.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/themes/nluug/layouts/partials/schemas/schema_Event.html b/themes/nluug/layouts/partials/schemas/schema_Event.html index 3d143ac..42563b9 100755 --- a/themes/nluug/layouts/partials/schemas/schema_Event.html +++ b/themes/nluug/layouts/partials/schemas/schema_Event.html @@ -12,6 +12,8 @@ {{ else }} "eventStatus": "EventScheduled", {{ end }} +{{- $featured := partial "opengraph/get-featured-image.html" . }} + "image": "{{ $featured.Permalink }}", "organizer": [ { "@type": "Organization", @@ -73,6 +75,8 @@ "description": "{{ (delimit (findRE "(?s)(.*?

)" .Content) "[…] ") | plainify | truncate 500 }}", "eventAttendanceMode": "https://schema.org/{{ if eq $.Params.event_attendance_mode "hybrid" }}Mixed{{ else if eq $.Params.event_attendance_mode "mixed" }}Mixed{{ else if eq $.Params.event_attendance_mode "online" }}Online{{ else }}Offline{{ end }}EventAttendanceMode", "eventStatus": "EventScheduled", +{{- $featured := partial "opengraph/get-featured-image.html" . }} + "image": "{{ $featured.Permalink }}", {{ if $.Params.online_event }} "location": { "@type": "VirtualLocation",