Verified Commit 3ea82908 authored by Adrian Pascu's avatar Adrian Pascu
Browse files

Mark cancelled events as `EventCancelled` in JSON-LD and `STATUS:CANCELLED` in the iCal feeds

parent 38ad516a
Loading
Loading
Loading
Loading
Loading
+2 −1
Changes for content/events/open-coworking-day/163.md: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
---
linktitle: Open Coworking Day 163
linktitle: Open Coworking Day 163 - CANCELLED
series: Open Coworking Day
title: "Open Coworking Day: Join and Cowork on Your Projects - CANCELLED"
location: HSBXL
@@ -8,6 +8,7 @@ startdate: "2026-10-09"
starttime: "9:30"
endtime: "18:00"
image: open-coworking-day.webp
cancelled: true
---

## Cancelled because of the public transport strike
+5 −0
Changes for themes/code-editor/layouts/_default/single.ics: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -36,8 +36,13 @@ SUMMARY:{{ .Title }}
ORGANIZER;CN="Hackerspace Brussels":mailto:contact@hsbxl.be
DESCRIPTION:{{ .Permalink }}
UID:{{ .File.Path }}@hsbxl.be
{{ if .Params.cancelled -}}
SEQUENCE:1
STATUS:CANCELLED
{{- else -}}
SEQUENCE:0
STATUS:CONFIRMED
{{- end }}
DTSTART:{{ dateFormat "20060102T150405" $startdate }}
DTSTAMP:{{ dateFormat "20060102T150405" .GitInfo.AuthorDate }}
{{- if ne $enddate "" }}
+5 −0
Changes for themes/code-editor/layouts/events/list.ics: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -36,8 +36,13 @@ SUMMARY:{{.Title}}
ORGANIZER;CN="Hackerspace Brussels":mailto:contact@hsbxl.be
DESCRIPTION:{{ .Permalink }}
UID:{{ .File.Path }}@hsbxl.be
{{ if .Params.cancelled -}}
SEQUENCE:1
STATUS:CANCELLED
{{- else -}}
SEQUENCE:0
STATUS:CONFIRMED
{{- end }}
DTSTART:{{dateFormat "20060102T150405" $startdate}}
DTSTAMP:{{dateFormat "20060102T150405" .GitInfo.AuthorDate}}
{{- if ne $enddate "" }}
+2 −1
Changes for themes/code-editor/layouts/partials/jsonld.html: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -47,13 +47,14 @@
{{- with .Params.starttime }}{{ $time := printf "%v" . }}{{ if eq (len $time) 4 }}{{ $time = print "0" $time }}{{ end }}{{ $start = printf "%sT%s:00" $startdate $time }}{{ end -}}
{{- $place := dict "@type" "Place" "name" "Hackerspace Brussels (HSBXL)" "address" $address -}}
{{- with .Params.location }}{{ if ne . "HSBXL" }}{{ $place = dict "@type" "Place" "name" . }}{{ end }}{{ end -}}
{{- $eventStatus := cond (.Params.cancelled | default false) "https://schema.org/EventCancelled" "https://schema.org/EventScheduled" -}}
{{- $event := dict
    "@context" "https://schema.org"
    "@type" "Event"
    "name" .Title
    "url" .Permalink
    "startDate" $start
    "eventStatus" "https://schema.org/EventScheduled"
    "eventStatus" $eventStatus
    "eventAttendanceMode" "https://schema.org/OfflineEventAttendanceMode"
    "location" $place
    "organizer" $organization