Show error when speaker name is blank in Event

This commit is contained in:
Michael Boelen 2024-10-23 13:08:45 +00:00
parent 97c343cbc5
commit df204e4052

View file

@ -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 }}
}