File tree 1 file changed +11
-2
lines changed
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -23,19 +23,28 @@ DTSTART:19701025T030000
23
23
RRULE :FREQ=YEARLY ;BYDAY=-1SU ;BYMONTH=10
24
24
END :STANDARD
25
25
END :VTIMEZONE
26
+ {% assign uids = "" -%}
26
27
{% for termin in site.data.calendar -%}
27
28
{% assign start_date = termin.datum | append: " " | append: termin.uhrzeit | remove: "h" | replace: ".", ":" | date: '%s' -%}
29
+ {% assign start = start_date | date: '%Y%m%dT%H%M%S' -%}
30
+ {% if uids contains start -%}
31
+ {% assign uidaddition = termin.ort | url_encode -%}
32
+ {% assign uid = start | append: uidaddition -%}
33
+ {% else -%}
34
+ {% assign uid = start -%}
35
+ {% endif -%}
36
+ {% assign uids = uids | append: "," | append: uid -%}
28
37
{% if termin.dauer -%}
29
38
{% assign dauer_seconds = termin.dauer | times: 3600 -%}
30
39
{% else -%}
31
40
{% assign dauer_seconds = 3600 -%}
32
41
{% endif -%}
33
42
{% assign end = start_date | plus: dauer_seconds | round | date: '%Y%m%dT%H%M%S' -%}
34
43
BEGIN :VEVENT
35
- UID :meeting+{{ start_date | date: '%Y%m%dT%H%M%S' }}@techaachen.de
44
+ UID :meeting+{{ uid }}@techaachen.de
36
45
SUMMARY :TechAachen - {{ termin.title }}
37
46
LOCATION :{{ termin.ort }}
38
- DTSTART ;TZID=Europe/Berlin :{{ start_date | date: '%Y%m%dT%H%M%S' }}
47
+ DTSTART ;TZID=Europe/Berlin :{{ start }}
39
48
DTEND ;TZID=Europe/Berlin :{{ end }}
40
49
DTSTAMP :{{ site.time | date: '%Y%m%dT%H%M%SZ' }}
41
50
END :VEVENT
You can’t perform that action at this time.
0 commit comments