lets try add a vcs

This commit is contained in:
Set Hallstrom 2019-06-26 14:01:29 +02:00
parent 625dc97f3d
commit 06d3521e25

27
momangen.vcs Normal file
View file

@ -0,0 +1,27 @@
---
---
BEGIN:VCALENDAR
PRODID:{{ site.url }}
VERSION:1.0{% for event in site.events %}
BEGIN:VEVENT
CREATED:{{ event.date | date_to_xmlschema | remove: '-' | remove: ':' | replace: '+0200', 'Z' | replace: '+0100', 'Z' | replace: '+0000', 'Z' }}
LAST-MODIFIED:{{ site.time | date_to_xmlschema | remove: '-' | remove: ':' | replace: '+0200', 'Z' | replace: '+0100', 'Z' | replace: '+0000', 'Z' }}
DTSTAMP:20190625T144210Z
UID:{{ site.url }}{{ event.url }}
SUMMARY:{{ event.title }}
ATTACH:{{ site.url }}{{ event.url }}
URL:{{ site.url }}{{ event.url }}
DTSTART;TZID=UTC:{{ event.event_data.start_datetime | date_to_xmlschema | remove: '-' | remove: ':' | replace: '+0200', '' | replace: '+0100', '' | replace: '+0000', '' }}
DTEND;TZID=UTC:{{ event.event_data.end_datetime | date_to_xmlschema | remove: '-' | remove: ':' | replace: '+0200', '' | replace: '+0100', '' | replace: '+0000', '' }}
TRANSP:OPAQUE
LOCATION:{{ site.adress }}
CATEGORIES:{{ event.category }}
GEO:+59.314134;-18.078281
DESCRIPTION:{{ event.content | strip_newlines | strip_html | replace: ',', '\,' }} - {{ site.url }}{{ event.url }}
BEGIN:VALARM
ACTION:DISPLAY
TRIGGER;VALUE=DURATION:-PT7H
DESCRIPTION:{{ event.description }}
END:VALARM
END:VEVENT{% endfor %}
END:VCALENDAR