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 ...@@ -9,18 +9,12 @@ METHOD:PUBLISH
{% for event in site.events limit:10 %}BEGIN:VEVENT {% for event in site.events limit:10 %}BEGIN:VEVENT
UID:{{ event.uid }} UID:{{ event.uid }}
ORGANIZER;CN="Chaotikum e.V.":MAILTO:{{event.contact}} ORGANIZER;CN="Chaotikum e.V.":MAILTO:{{event.contact}}
LOCATION:Chaotikum 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 %}
{% capture textSize %}{{ event.short | size }}{% endcapture %} SUMMARY:{% for i in (1..rounds) %}{{ event.short | slice: start, linelength }}{% assign start = start | plus: linelength %}
{% assign rounds = textSize | divided_by: 70 %} {% endfor%}{{ event.short | slice: start, extra }}
{% assign extra = textSize | modulo: 70 %}
{% assign start = 0 %}
{% assign end = 70 %}
{% assign linelength = 70 %}
SUMMARY:{{ rounds }}:{{ event.short }}
CLASS:PUBLIC CLASS:PUBLIC
DTSTART:{{ event.eventdate | date: "%Y%m%d" }}T{{ event.eventdate | date: "%H%M%S" }}Z 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 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 DTSTAMP:{{ event.eventdate | date: "%Y%m%d" }}T{{ event.eventdate | date: "%H%M%S" }}Z
END:VEVENT END:VEVENT{% endfor %}
{% endfor %}
END:VCALENDAR 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