2019-06-06 23:54:32 +02:00
|
|
|
doctype xml
|
2019-10-02 21:05:15 +02:00
|
|
|
rss(version='2.0' xmlns:atom="http://www.w3.org/2005/Atom")
|
2019-06-06 23:54:32 +02:00
|
|
|
channel
|
2022-01-12 22:57:09 +01:00
|
|
|
atom:link(href=`${settings.baseurl}/feed/rss` rel="self" type="application/rss+xml")
|
2019-10-20 14:22:55 +02:00
|
|
|
title #{settings.title}
|
|
|
|
link #{settings.baseurl}
|
|
|
|
description #{settings.description}
|
2019-06-06 23:54:32 +02:00
|
|
|
each event in events
|
|
|
|
item
|
2022-01-17 12:04:42 +01:00
|
|
|
if (event.media && event.media.length)
|
|
|
|
<enclosure url="#{settings.baseurl}/media/#{event.media[0].url}" type='image/jpeg'></enclosure>
|
2019-10-20 14:22:55 +02:00
|
|
|
title [#{moment.unix(event.start_datetime).format("YY-MM-DD")}] #{event.title} @#{event.place.name}
|
2021-07-27 17:20:27 +02:00
|
|
|
link #{settings.baseurl}/event/#{event.slug || event.id}
|
2022-01-17 12:04:42 +01:00
|
|
|
each tag in event.tags
|
|
|
|
category #{tag.tag}
|
2019-06-06 23:54:32 +02:00
|
|
|
description
|
|
|
|
| <![CDATA[
|
|
|
|
| <h4>#{event.title}</h4>
|
|
|
|
| <strong>#{event.place.name} - #{event.place.address}</strong>
|
2019-10-20 14:22:55 +02:00
|
|
|
| <small>(#{moment.unix(event.start_datetime).format("dddd, D MMMM HH:mm")})</small><br/>
|
2021-07-19 12:15:28 +02:00
|
|
|
if (event.media && event.media.length)
|
2021-07-27 17:20:27 +02:00
|
|
|
| <img alt="#{event.media[0].name || ''}" src="#{settings.baseurl}/media/#{event.media[0].url}"/>
|
2022-06-11 10:34:46 +02:00
|
|
|
| !{event.description}
|
2019-06-06 23:54:32 +02:00
|
|
|
| ]]>
|
2019-12-04 00:50:15 +01:00
|
|
|
pubDate= new Date(event.updatedAt).toUTCString()
|
2022-01-17 12:04:42 +01:00
|
|
|
guid #{settings.baseurl}/event/#{event.slug || event.id}
|
2022-01-12 22:57:09 +01:00
|
|
|
|