From df204e4052f59386e430966344f689ae264b60ca Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Wed, 23 Oct 2024 13:08:45 +0000 Subject: [PATCH] Show error when speaker name is blank in Event --- themes/nluug/layouts/partials/schemas/schema_Event.html | 1 + 1 file changed, 1 insertion(+) diff --git a/themes/nluug/layouts/partials/schemas/schema_Event.html b/themes/nluug/layouts/partials/schemas/schema_Event.html index b1be2fe..b7758fa 100755 --- a/themes/nluug/layouts/partials/schemas/schema_Event.html +++ b/themes/nluug/layouts/partials/schemas/schema_Event.html @@ -127,6 +127,7 @@ { "@type": "Person", {{ $speaker := index $.Site.Data.personen ($element) }} + {{ if not $speaker.name }}{{ errorf "Empty speaker name. File /data/personen/%s.json should be created or name field filled in." ($element) }}{{ end }} "name": "{{ $speaker.name }}" {{ if $speaker.profile_page }},"url":"{{ $speaker.profile_page | absURL }}"{{ end }} }