Skip to content
Snippets Groups Projects
Unverified Commit 96dc895f authored by Lukas Ruge's avatar Lukas Ruge
Browse files

hopefilly fixed event.ics

parent 81860df4
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -9,18 +9,12 @@ METHOD:PUBLISH
{% for event in site.events limit:10 %}BEGIN:VEVENT
UID:{{ event.uid }}
ORGANIZER;CN="Chaotikum e.V.":MAILTO:{{event.contact}}
LOCATION:Chaotikum
{% capture textSize %}{{ event.short | size }}{% endcapture %}
{% assign rounds = textSize | divided_by: 70 %}
{% assign extra = textSize | modulo: 70 %}
{% assign start = 0 %}
{% assign end = 70 %}
{% assign linelength = 70 %}
SUMMARY:{{ rounds }}:{{ event.short }}
LOCATION:Chaotikum{% capture textSize %}{{ event.short | size }}{% endcapture %}{% assign linelength = 60 %}{% assign rounds = textSize | divided_by: linelength %}{% assign extra = textSize | modulo: linelength %}{% assign start = 0 %}
SUMMARY:{% for i in (1..rounds) %}{{ event.short | slice: start, linelength }}{% assign start = start | plus: linelength %}
{% endfor%}{{ event.short | slice: start, extra }}
CLASS:PUBLIC
DTSTART:{{ event.eventdate | date: "%Y%m%d" }}T{{ event.eventdate | date: "%H%M%S" }}Z
DTEND:{{ event.eventdate | date: "%Y%m%d" }}T{{ event.eventdate | date: "%H%M%S" }}Z
DTSTAMP:{{ event.eventdate | date: "%Y%m%d" }}T{{ event.eventdate | date: "%H%M%S" }}Z
END:VEVENT
{% endfor %}
END:VEVENT{% endfor %}
END:VCALENDAR
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment