Adding 'image' to event and subevent types
This commit is contained in:
parent
e942c5b70c
commit
44168d0998
1 changed files with 4 additions and 0 deletions
|
@ -12,6 +12,8 @@
|
||||||
{{ else }}
|
{{ else }}
|
||||||
"eventStatus": "EventScheduled",
|
"eventStatus": "EventScheduled",
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{- $featured := partial "opengraph/get-featured-image.html" . }}
|
||||||
|
"image": "{{ $featured.Permalink }}",
|
||||||
"organizer": [
|
"organizer": [
|
||||||
{
|
{
|
||||||
"@type": "Organization",
|
"@type": "Organization",
|
||||||
|
@ -73,6 +75,8 @@
|
||||||
"description": "{{ (delimit (findRE "(?s)(<p.*?>.*?</p>)" .Content) "[…] ") | plainify | truncate 500 }}",
|
"description": "{{ (delimit (findRE "(?s)(<p.*?>.*?</p>)" .Content) "[…] ") | 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",
|
"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",
|
"eventStatus": "EventScheduled",
|
||||||
|
{{- $featured := partial "opengraph/get-featured-image.html" . }}
|
||||||
|
"image": "{{ $featured.Permalink }}",
|
||||||
{{ if $.Params.online_event }}
|
{{ if $.Params.online_event }}
|
||||||
"location": {
|
"location": {
|
||||||
"@type": "VirtualLocation",
|
"@type": "VirtualLocation",
|
||||||
|
|
Loading…
Reference in a new issue