ics calendar #265
@ -17,6 +17,26 @@ METHOD:PUBLISH
|
||||
{{- if .Params.location_ics }}
|
||||
{{- $location = .Params.location_ics }}
|
||||
{{- end }}
|
||||
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
|
||||
BEGIN:VEVENT
|
||||
SUMMARY:{{.Title}}
|
||||
ORGANIZER;{{ .Site.Param "ics.organizer" }}
|
||||
@ -28,11 +48,11 @@ LOCATION:{{ $location }}
|
||||
URL:{{ .Permalink }}
|
||||
{{ with .Lastmod }}DTSTAMP:{{dateFormat "20060102T150405Z" . }}
|
||||
{{ end -}}
|
||||
{{ if .Date }}DTSTART;TZID=Europe/Rome:{{dateFormat "20060102T150405Z" .Date }}
|
||||
{{ if .Date }}DTSTART;TZID=Europe/Rome:{{dateFormat "20060102T150405" .Date }}
|
||||
{{- $d := time.AsTime .Date }}
|
||||
{{- $duration := .Params.duration | default "1h" }}
|
||||
DTEND;TZID=Europe/Rome:{{dateFormat "20060102T150405Z" ($d.Add (time.ParseDuration $duration) ) }}
|
||||
{{- end -}}
|
||||
DTEND;TZID=Europe/Rome:{{dateFormat "20060102T150405" ($d.Add (time.ParseDuration $duration) ) }}
|
||||
{{- end }}
|
||||
END:VEVENT
|
||||
{{- end -}}
|
||||
{{- end }}
|
||||
END:VCALENDAR
|
||||
|
Loading…
x
Reference in New Issue
Block a user