fixed ics generation
This commit is contained in:
parent
4068fab565
commit
2b5277a3a0
7 changed files with 98 additions and 56 deletions
25
layouts/veranstaltungen/list.ics
Normal file
25
layouts/veranstaltungen/list.ics
Normal file
|
@ -0,0 +1,25 @@
|
|||
{{- $time_zone := "Europe/Berlin" -}}
|
||||
BEGIN:VCALENDAR
|
||||
VERSION:2.0
|
||||
PRODID:-//CCCB//Calendar//DE
|
||||
CALSCALE:GREGORIAN
|
||||
METHOD:PUBLISH
|
||||
X-WR-CALNAME:CCCB Veranstaltungen
|
||||
X-WR-TIMEZONE:{{ $time_zone }}
|
||||
{{ range .Pages }}
|
||||
BEGIN:VEVENT
|
||||
UID:{{ .File.BaseFileName }}@berlin.ccc.de
|
||||
SUMMARY:{{ .Title }}
|
||||
{{ with .Params.subtitle }}
|
||||
DESCRIPTION:{{ . }}
|
||||
|
||||
Link: https://berlin.ccc.de{{ $.RelPermalink }}
|
||||
{{ end }}
|
||||
URL:https://berlin.ccc.de{{ .RelPermalink }}
|
||||
{{ with .Params.dtstart }}DTSTART:{{ . }}{{ end }}
|
||||
{{ with .Params.dtend }}DTEND:{{ . }}{{ end }}
|
||||
{{ with .Params.rrule }}RRULE:{{ . }}{{ end }}
|
||||
DTSTAMP:{{ now.Format "20060102T150405Z" }}
|
||||
END:VEVENT
|
||||
{{ end }}
|
||||
END:VCALENDAR
|
Loading…
Add table
Add a link
Reference in a new issue