Show error when speaker name is blank in Event
This commit is contained in:
parent
97c343cbc5
commit
df204e4052
1 changed files with 1 additions and 0 deletions
|
@ -127,6 +127,7 @@
|
||||||
{
|
{
|
||||||
"@type": "Person",
|
"@type": "Person",
|
||||||
{{ $speaker := index $.Site.Data.personen ($element) }}
|
{{ $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 }}"
|
"name": "{{ $speaker.name }}"
|
||||||
{{ if $speaker.profile_page }},"url":"{{ $speaker.profile_page | absURL }}"{{ end }}
|
{{ if $speaker.profile_page }},"url":"{{ $speaker.profile_page | absURL }}"{{ end }}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue