From a01afb2dd3ff86c3cd004f504b9857c0aadb6559 Mon Sep 17 00:00:00 2001 From: Daniel Molkentin Date: Mon, 9 Jul 2018 01:44:11 +0200 Subject: [PATCH] Calendars for all events (to be tested) --- content/page/amateurfunk.md | 3 +++ content/page/chaosradio.md | 4 ++++ content/page/clubdiscordia.md | 3 +++ content/page/cms.md | 3 +++ content/page/coderdojo.md | 3 +++ content/page/plenum.md | 6 ++--- layouts/page/single.ics | 43 +++++++++++++++++++++++++++++++++++ 7 files changed, 62 insertions(+), 3 deletions(-) create mode 100644 layouts/page/single.ics diff --git a/content/page/amateurfunk.md b/content/page/amateurfunk.md index 24066f0..12547fd 100644 --- a/content/page/amateurfunk.md +++ b/content/page/amateurfunk.md @@ -2,6 +2,9 @@ title: "Amateurfunk" subtitle: "Funken und Löten im CCCB" date: 2018-05-17T22:41:48+02:00 +dtstart: 20180709T200000 +dtend: 20180709T220000 +rrule: "FREQ=WEEKLY;BYDAY=MO;INTERVAL=1" menu: main: parent: "veranstaltungen" diff --git a/content/page/chaosradio.md b/content/page/chaosradio.md index cbe6b9e..177f824 100644 --- a/content/page/chaosradio.md +++ b/content/page/chaosradio.md @@ -2,6 +2,10 @@ title: "Chaosradio" subtitle: "Der Podcast im Radio" date: 2018-05-17T22:47:26+02:00 +rrule: "FREQ=MONTHLY;BYSETPOS=-1;BYDAY=TH;INTERVAL=1" +dtstart: 20180628T220000 +dtend: 20180629T000000 +location: "CCCB oder Fritz" menu: main: parent: "veranstaltungen" diff --git a/content/page/clubdiscordia.md b/content/page/clubdiscordia.md index d52abed..9f34cd1 100644 --- a/content/page/clubdiscordia.md +++ b/content/page/clubdiscordia.md @@ -2,6 +2,9 @@ title: "Club Discordia" subtitle: "Die offenen Abende im CCCB" date: 2018-05-17T22:59:56+02:00 +dtstart: 2018070300000 +dtend: 20180704T000000 +rrule: "FREQ=WEEKLY;BYDAY=TU,TH;INTERVAL=1" menu: main: parent: "veranstaltungen" diff --git a/content/page/cms.md b/content/page/cms.md index c827750..f2c5ea9 100644 --- a/content/page/cms.md +++ b/content/page/cms.md @@ -2,6 +2,9 @@ title: "Chaos macht Schule" subtitle: "Technikkompetenzvermittlung" date: 2018-05-18T01:11:54+02:00 +rrule: "FREQ=MONTHLY;BYSETPOS=1;BYDAY=TH;INTERVAL=1" +dtstart: 20180705T190000 +dtend: 20180705T230000 menu: main: parent: "veranstaltungen" diff --git a/content/page/coderdojo.md b/content/page/coderdojo.md index e9f9ab9..f613c7d 100644 --- a/content/page/coderdojo.md +++ b/content/page/coderdojo.md @@ -2,6 +2,7 @@ title: "Coder Dojo" subtitle: Hacken und Coden für Kinder date: 2018-05-18T09:51:02+02:00 +rrule: "FREQ=MONTHLY;BYSETPOS=3;BYDAY=SA;INTERVAL=1" menu: main: parent: "veranstaltungen" @@ -10,6 +11,8 @@ menu: Wir hosten den [Coder Dojo Berlin Mitte](https://zen.coderdojo.com/dojo/de/berlin/berlin-mitte). +Er findet jeden dritten Samstag im Monat von 14 bis 17 Uhr statt. + ## Bitte vorher anmelden Schickt uns bitte eine Email an , um Euch zu registrieren. Wenn Ihr einen Leih-Laptop braucht, sagt einfach Bescheid. diff --git a/content/page/plenum.md b/content/page/plenum.md index 7fd318b..21daaef 100644 --- a/content/page/plenum.md +++ b/content/page/plenum.md @@ -2,12 +2,12 @@ title: "Plenum" subtitle: "Instrument der internen Konsensfindung" date: 2018-05-18T01:11:54+02:00 +rrule: "FREQ=MONTHLY;BYSETPOS=1;BYDAY=WE;INTERVAL=1" +dtstart: 20180704T200000 +dtend: 20180704T220000 menu: main: parent: "verein" -outputs: - - html - - calendar --- Das Plenum findet am ersten Mittwoch des Monats ab 20:00 Uhr in den Clubräumen diff --git a/layouts/page/single.ics b/layouts/page/single.ics new file mode 100644 index 0000000..c02ba10 --- /dev/null +++ b/layouts/page/single.ics @@ -0,0 +1,43 @@ +{{if isset .Params "rrule"}} +BEGIN:VCALENDAR +VERSION:2.0 +PRODID:-//cccb//datengarten calendar//EN +CALSCALE:GREGORIAN +METHOD:PUBLISH +BEGIN:VTIMEZONE +TZID:Europe/Berlin +X-LIC-LOCATION:Europe/Berlin +BEGIN:DAYLIGHT +TZOFFSETFROM:+0100 +TZOFFSETTO:+0200 +TZNAME:CEST +DTSTART:19700329T020000 +END:DAYLIGHT +BEGIN:STANDARD +TZOFFSETFROM:+0200 +TZOFFSETTO:+0100 +TZNAME:CET +DTSTART:19701025T030000 +RRULE:{{.Params.rrule}} +END:STANDARD +END:VTIMEZONE +BEGIN:VEVENT +ORGANIZER;CN="CCCB":mailto:mail@berlin.ccc.de +SUMMARY:{{.Title}} +UID: {{.Title}}@berlin.ccc.de +SEQUENCE:0 +STATUS:CONFIRMED +DTSTAMP:20180508T200000Z +DTSTART;TZID=Europe/Berlin:{{.Params.dtstart}} +DTEND;TZID=Europe/Berlin:{{.Params.dtend}} +RRULE:{{.Params.rrule}} +{{if isset .Params "rrule_excludes" }} +{{range .Params.rrule_excludes }} +EXDATE;TZID=Europe/Berlin:{{dateFormat "20060102T150405" . }} +{{end -}} +{{end -}} +LOCATION:{{with .Params.location}}{{.}}{{else}}CCCB{{end}} +URL:{{.Permalink}} +END:VEVENT +END:VCALENDAR +{{end -}}