From 06d3521e25e5e38fbde977fc21d6b430c6a1ee1f Mon Sep 17 00:00:00 2001 From: Set Hallstrom Date: Wed, 26 Jun 2019 14:01:29 +0200 Subject: [PATCH] lets try add a vcs --- momangen.vcs | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 momangen.vcs diff --git a/momangen.vcs b/momangen.vcs new file mode 100644 index 0000000..149e1a4 --- /dev/null +++ b/momangen.vcs @@ -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 \ No newline at end of file