adding ical feed
This commit is contained in:
parent
dfa0a8944b
commit
3b2df0a668
2 changed files with 42 additions and 0 deletions
|
|
@ -15,6 +15,7 @@
|
||||||
# in the templates via {{ site.myvariable }}.
|
# in the templates via {{ site.myvariable }}.
|
||||||
title: 'Momangen'
|
title: 'Momangen'
|
||||||
email: info+website@momangen.se
|
email: info+website@momangen.se
|
||||||
|
adress: 'Kocksgatan 23, Stockholm, Sweden'
|
||||||
baseurl: "" # the subpath of your site, e.g. /blog
|
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
|
url: "https://www.momangen.se" # the base hostname & protocol for your site, e.g. http://example.com
|
||||||
# instagram_username: 'sethybwoy'
|
# instagram_username: 'sethybwoy'
|
||||||
|
|
|
||||||
41
events.ics
Normal file
41
events.ics
Normal file
|
|
@ -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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue