forked from cccb-website-team/www
Calendars for all events
(to be tested)
This commit is contained in:
parent
f97837631c
commit
a01afb2dd3
7 changed files with 62 additions and 3 deletions
43
layouts/page/single.ics
Normal file
43
layouts/page/single.ics
Normal file
|
@ -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 -}}
|
Reference in a new issue