From 982c7e91fc393a982509b19ca74682f2ebdac531 Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Thu, 22 Jun 2023 13:13:20 +0200 Subject: [PATCH] Toevoegen extra velden aan Event --- .../nluug/najaarsconferentie-2023/index.md | 3 +++ .../nluug/layouts/partials/schemas/schema_Event.html | 11 ++++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/content/evenementen/nluug/najaarsconferentie-2023/index.md b/content/evenementen/nluug/najaarsconferentie-2023/index.md index 8a7e470..dc5f794 100644 --- a/content/evenementen/nluug/najaarsconferentie-2023/index.md +++ b/content/evenementen/nluug/najaarsconferentie-2023/index.md @@ -20,9 +20,11 @@ event_address: postal_code: "3526 KV" city: "Utrecht" country_name: "The Netherlands" +event_attendance_mode: "offline" event_cfp_start_date: 2023-05-11 event_cfp_close_date: 2023-09-28 event_cfp_link: https://cfp.nluug.nl/nluug-najaarsconferentie-2023/cfp +event_description: "Najaarsconferentie 2023 van de vereniging NLUUG in het Van der Valk Hotel te Utrecht" event_members_only: true event_organizers: - organizer: @@ -31,6 +33,7 @@ event_organizers: event_register_start_date: 2023-06-20 event_register_end_date: 2023-11-29 event_register_link: "https://leden.nluug.nl/aanmelden/index.cgi?action=event" +event_status: "scheduled" event_schedule: title: Programma description: Alleen maar geweldige sprekers diff --git a/themes/nluug/layouts/partials/schemas/schema_Event.html b/themes/nluug/layouts/partials/schemas/schema_Event.html index 34702f3..b6d89a0 100644 --- a/themes/nluug/layouts/partials/schemas/schema_Event.html +++ b/themes/nluug/layouts/partials/schemas/schema_Event.html @@ -7,7 +7,11 @@ "name": "{{ .Title | default .Site.Params.textEmptyValue }}", "startDate": {{ .Params.event_start }}, "endDate": {{ .Params.event_end }}, -{{ if not .Params.event_organizers }} + {{ if .Params.event_status }} + "eventStatus":"Event{{ .Params.event_status | strings.FirstUpper }}", + {{ else }} + "eventStatus":"EventScheduled", + {{ end }} "organizer": [ { "@type": "Organization", @@ -16,10 +20,11 @@ "url": "{{ .Site.BaseURL }}" } ], -{{ end }} "audience": ["software developers", "network engineers", "system administrators"], - {{ if .Params.purchaselink }}"offers": "https://nluug.nl/url-to-offer",{{ end }} + "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", + "offers": "{{ absURL "lidmaatschap/aanmelden/" }}", "about": ["automation","configuration management","DevOps","internet","Linux","open source","open standards","security","web"], + {{ if .Params.event_description }}"description": "{{ .Params.event_description }}",{{ end }} {{ if .Params.online_event }} "location": { "@type": "VirtualLocation",