bglug.it/layouts/_default/home.calendar.ics

59 lines
1.6 KiB
Plaintext
Raw Normal View History

2024-09-29 00:06:03 +02:00
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//BgLUG//BgLUG Events Calendar//EN
X-WR-CALNAME:BgLUG Events Calendar
X-WR-TIMEZONE:Europe/Rome
CALSCALE:GREGORIAN
METHOD:PUBLISH
2024-10-01 21:09:47 +02:00
{{- range where .Site.Pages ".Page.Params.add_to_ics" true -}}
2024-09-29 00:06:03 +02:00
{{- $location := "" -}}
{{- $locations := .Params.locations -}}
{{- with (eq (printf "%T" $locations ) "string" ) -}}
{{- $location = $locations -}}
{{- end -}}
{{- with (eq (printf "%T" $locations ) "[]string" ) -}}
{{- $location = (index $locations 0) -}}
{{- end -}}
2024-10-01 21:09:47 +02:00
{{- if .Params.location_ics }}
2024-09-29 00:06:03 +02:00
{{- $location = .Params.location_ics }}
{{- end }}
2024-10-01 21:46:34 +02:00
BEGIN:VTIMEZONE
TZID:Europe/Rome
LAST-MODIFIED:20240422T053451Z
TZURL:https://www.tzurl.org/zoneinfo-outlook/Europe/Rome
X-LIC-LOCATION:Europe/Rome
BEGIN:DAYLIGHT
TZNAME:CEST
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
DTSTART:19700329T020000
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU
END:DAYLIGHT
BEGIN:STANDARD
TZNAME:CET
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
DTSTART:19701025T030000
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU
END:STANDARD
END:VTIMEZONE
2024-09-29 00:06:03 +02:00
BEGIN:VEVENT
SUMMARY:{{.Title}}
ORGANIZER;{{ .Site.Param "ics.organizer" }}
UID:{{ md5 .Permalink }}@bglug.it
SEQUENCE:0
STATUS:CONFIRMED
TRANSP:TRANSPARENT
LOCATION:{{ $location }}
URL:{{ .Permalink }}
{{ with .Lastmod }}DTSTAMP:{{dateFormat "20060102T150405Z" . }}
{{ end -}}
2024-10-01 21:46:34 +02:00
{{ if .Date }}DTSTART;TZID=Europe/Rome:{{dateFormat "20060102T150405" .Date }}
2024-09-29 00:06:03 +02:00
{{- $d := time.AsTime .Date }}
{{- $duration := .Params.duration | default "1h" }}
2024-10-01 21:46:34 +02:00
DTEND;TZID=Europe/Rome:{{dateFormat "20060102T150405" ($d.Add (time.ParseDuration $duration) ) }}
{{- end }}
2024-09-29 00:06:03 +02:00
END:VEVENT
2024-10-01 21:46:34 +02:00
{{- end }}
2024-09-29 00:06:03 +02:00
END:VCALENDAR