diff --git a/_config.yml b/_config.yml index 3f54eb5..b646067 100644 --- a/_config.yml +++ b/_config.yml @@ -15,6 +15,7 @@ # in the templates via {{ site.myvariable }}. title: 'Momangen' email: info+website@momangen.se +adress: 'Kocksgatan 23, Stockholm, Sweden' baseurl: "" # the subpath of your site, e.g. /blog url: "https://www.momangen.se" # the base hostname & protocol for your site, e.g. http://example.com # instagram_username: 'sethybwoy' diff --git a/events.ics b/events.ics new file mode 100644 index 0000000..42f4372 --- /dev/null +++ b/events.ics @@ -0,0 +1,41 @@ +--- +--- +BEGIN:VCALENDAR +PRODID:{{ site.url }} +VERSION:2.0 +BEGIN:VTIMEZONE +TZID:Europe/Stockholm +BEGIN:DAYLIGHT +TZOFFSETFROM:+0100 +TZOFFSETTO:+0200 +TZNAME:CEST +DTSTART:19700329T020000 +RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=3 +END:DAYLIGHT +BEGIN:STANDARD +TZOFFSETFROM:+0200 +TZOFFSETTO:+0100 +TZNAME:CET +DTSTART:19701025T030000 +RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10 +END:STANDARD +END:VTIMEZONE{% for event in site.events %} +BEGIN:VEVENT +CREATED:{{ event.date | date_to_xmlschema | remove: '-' | remove: ':' | replace: '+0200', 'Z' | replace: '+0100', 'Z' }} +LAST-MODIFIED:{{ site.time | date_to_xmlschema | remove: '-' | remove: ':' | replace: '+0200', 'Z' | replace: '+0100', 'Z' }} +DTSTAMP:20190625T144210Z +UID:{{ site.url }}{{ event.url }} +SUMMARY:{{ event.title }} +ATTACH:{{ site.url }}{{ event.url }} +DTSTART;TZID=Europe/Stockholm:{{ event.event_data.start_datetime | date_to_xmlschema | remove: '-' | remove: ':' | replace: '+0200', '' | replace: '+0100', '' }} +DTEND;TZID=Europe/Stockholm:{{ event.event_data.end_datetime | date_to_xmlschema | remove: '-' | remove: ':' | replace: '+0200', '' | replace: '+0100', '' }} +TRANSP:OPAQUE +LOCATION:{{ site.adress }} +DESCRIPTION:{{ event.content | strip_newlines | strip_html }} +BEGIN:VALARM +ACTION:DISPLAY +TRIGGER;VALUE=DURATION:-PT7H +DESCRIPTION:{{ event.description }} +END:VALARM +END:VEVENT{% endfor %} +END:VCALENDAR \ No newline at end of file