From ad9266d8ebdec684255ee85dd04d7e514818ccec Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Thu, 22 Jun 2023 14:29:28 +0200 Subject: [PATCH] Uitbreiden met meerdere velden --- themes/nluug/layouts/partials/schemas/schema_Event.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/themes/nluug/layouts/partials/schemas/schema_Event.html b/themes/nluug/layouts/partials/schemas/schema_Event.html index b6d89a0..78ed530 100644 --- a/themes/nluug/layouts/partials/schemas/schema_Event.html +++ b/themes/nluug/layouts/partials/schemas/schema_Event.html @@ -44,6 +44,15 @@ "name": "{{ .Params.event_location }}" }, {{ end }} +{{ with .Params.event_images -}} + "image": [ + {{- range $index, $element := . -}} + {{- if ne $index 0 -}}, {{ end }} + {{ $image := resources.Get $element -}} + {{ $image.Permalink -}} + {{- end }} + ], + {{ end -}} "mainEntityOfPage": { "@type": "Webpage", "@id": "{{ .Permalink }}#webpage",