2023-06-22 11:18:31 +02:00
|
|
|
<script type="application/ld+json">
|
|
|
|
{
|
2023-06-23 11:39:59 +02:00
|
|
|
"@context": "https://schema.org",
|
2023-06-22 11:18:31 +02:00
|
|
|
"@type": "Event",
|
|
|
|
"@id": "{{ .Permalink }}#event",
|
|
|
|
"url": "{{ .Permalink }}",
|
|
|
|
"name": "{{ .Title | default .Site.Params.textEmptyValue }}",
|
|
|
|
"startDate": {{ .Params.event_start }},
|
|
|
|
"endDate": {{ .Params.event_end }},
|
2023-06-22 13:13:20 +02:00
|
|
|
{{ if .Params.event_status }}
|
|
|
|
"eventStatus":"Event{{ .Params.event_status | strings.FirstUpper }}",
|
|
|
|
{{ else }}
|
|
|
|
"eventStatus":"EventScheduled",
|
|
|
|
{{ end }}
|
2023-06-22 11:18:31 +02:00
|
|
|
"organizer": [
|
|
|
|
{
|
|
|
|
"@type": "Organization",
|
|
|
|
"name": "NLUUG",
|
|
|
|
"id": "{{ .Site.BaseURL }}#organization",
|
|
|
|
"url": "{{ .Site.BaseURL }}"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"audience": ["software developers", "network engineers", "system administrators"],
|
2023-06-22 13:13:20 +02:00
|
|
|
"eventAttendanceMode": "https://schema.org/{{ if eq .Params.event_attendance_mode "mix" }}Mix{{ else if eq .Params.event_attendance_mode "online" }}Online{{ else }}Offline{{ end }}EventAttendanceMode",
|
2023-06-23 13:40:09 +02:00
|
|
|
"isAccessibleForFree": true,
|
2023-06-22 11:18:31 +02:00
|
|
|
"about": ["automation","configuration management","DevOps","internet","Linux","open source","open standards","security","web"],
|
2023-06-23 13:40:09 +02:00
|
|
|
"inLanguage": ["en", "nl"],
|
2023-06-22 13:13:20 +02:00
|
|
|
{{ if .Params.event_description }}"description": "{{ .Params.event_description }}",{{ end }}
|
2023-06-22 11:18:31 +02:00
|
|
|
{{ 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 }}
|
2023-07-01 11:47:44 +02:00
|
|
|
"performer": [
|
|
|
|
{
|
|
|
|
"@type": "Organization",
|
|
|
|
"name": "NLUUG",
|
|
|
|
"id": "{{ .Site.BaseURL }}#organization",
|
|
|
|
"url": "{{ .Site.BaseURL }}"
|
|
|
|
}
|
|
|
|
],
|
2023-06-22 14:29:28 +02:00
|
|
|
{{ with .Params.event_images -}}
|
|
|
|
"image": [
|
|
|
|
{{- range $index, $element := . -}}
|
|
|
|
{{- if ne $index 0 -}}, {{ end }}
|
|
|
|
{{ $image := resources.Get $element -}}
|
|
|
|
{{ $image.Permalink -}}
|
|
|
|
{{- end }}
|
|
|
|
],
|
|
|
|
{{ end -}}
|
2023-06-26 20:56:58 +02:00
|
|
|
{{ $list := where .Pages "Params.speakers" "!=" nil }}
|
|
|
|
{{ if gt (len $list) 0 }}"subEvent": [{{ end }}
|
|
|
|
{{ range $key, $value := $list }}
|
|
|
|
{{- if ne $key 0 -}}, {{ end }}
|
|
|
|
{
|
|
|
|
"@type": "Event",
|
|
|
|
"name": "{{ $value.Title }}",
|
|
|
|
"url": "{{ $value.Permalink }}",
|
2023-06-26 21:12:52 +02:00
|
|
|
"location": "{{ $.Params.event_location }}",
|
2023-06-26 20:56:58 +02:00
|
|
|
"startDate": {{ $.Params.event_start | time.Format "2006-01-02" }},
|
|
|
|
"endDate": {{ $.Params.event_end | time.Format "2006-01-02" }},
|
|
|
|
"performer": [
|
|
|
|
{{- range $index, $element := $value.Params.speakers -}}
|
|
|
|
{{- if ne $index 0 -}}, {{ end }}
|
|
|
|
{
|
|
|
|
"@type": "Person",
|
|
|
|
{{ $speaker := index $.Site.Data.personen ($element) }}
|
|
|
|
"name": "{{ $speaker.name }}"
|
|
|
|
{{ if $speaker.profile_page }},"url":"{{ $speaker.profile_page | absURL }}"{{ end }}
|
|
|
|
}
|
|
|
|
{{- end }}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
{{ end }}
|
|
|
|
{{ if gt (len $list) 0 }}],{{ end }}
|
2023-06-22 11:18:31 +02:00
|
|
|
"mainEntityOfPage": {
|
|
|
|
"@type": "Webpage",
|
|
|
|
"@id": "{{ .Permalink }}#webpage",
|
|
|
|
"url": "{{ .Permalink }}",
|
|
|
|
"name": "{{ .Title }}",
|
|
|
|
"speakable": {
|
|
|
|
"@type": "SpeakableSpecification",
|
|
|
|
"cssSelector": ".speakable"
|
|
|
|
},
|
|
|
|
"isPartOf": {
|
|
|
|
"@type": "WebSite",
|
|
|
|
"@id": "{{ .Site.BaseURL }}#website",
|
|
|
|
"url": "{{ .Site.BaseURL }}",
|
|
|
|
"name": "{{ .Site.Title | default .Site.Params.textNoTitle }}"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
</script>
|