Adding more details to subevents, which are in our case individual talks, parts of a conference

This commit is contained in:
Michael Boelen 2024-10-20 13:43:20 +00:00
parent f4052dc31b
commit c9caac8af0

31
themes/nluug/layouts/partials/schemas/schema_Event.html Normal file → Executable file
View file

@ -70,7 +70,36 @@
"@type": "Event", "@type": "Event",
"name": "{{ $value.Title }}", "name": "{{ $value.Title }}",
"url": "{{ $value.Permalink }}", "url": "{{ $value.Permalink }}",
"location": "{{ $.Params.event_location }}", "description": "{{ (delimit (findRE "(?s)(<p.*?>.*?</p>)" .Content) "[&hellip;] ") | 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",
{{ if $.Params.online_event }}
"location": {
"@type": "VirtualLocation",
"url": "{{ $.Params.online_event_stream_url }}"
},
{{ else }}
"location": {
"@type": "Place",
"address": {
"@type": "PostalAddress",
"addressLocality": "{{ $.Params.event_address.city }}",
{{ if $.Params.event_address.region }}"addressRegion": "{{ $.Params.event_address.region }}",{{ end }}
"streetAddress": "{{ $.Params.event_address.street_address }}",
"postalCode": "{{ $.Params.event_address.postal_code }}",
"addressCountry": {{ $.Params.event_address.country_name }}
},
"name": "{{ $.Params.event_location }}"
},
{{ end }}
"organizer": [
{
"@type": "Organization",
"name": "NLUUG",
"id": "{{ .Site.BaseURL }}#organization",
"url": "{{ .Site.BaseURL }}"
}
],
"startDate": {{ $.Params.event_start | time.Format "2006-01-02" }}, "startDate": {{ $.Params.event_start | time.Format "2006-01-02" }},
"endDate": {{ $.Params.event_end | time.Format "2006-01-02" }}, "endDate": {{ $.Params.event_end | time.Format "2006-01-02" }},
"performer": [ "performer": [