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-06-18 01:14:41 +02:00
|
|
|
atom:link(href=`${link}` rel="self" type="application/rss+xml")
|
|
|
|
title #{title}
|
2019-10-20 14:22:55 +02:00
|
|
|
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)
|
2022-06-18 01:14:41 +02:00
|
|
|
<enclosure url="#{settings.baseurl}/media/#{event.media[0].url}" type='image/jpeg' length="#{event.media[0].size||1}"></enclosure>
|
2023-03-28 19:04:16 +02:00
|
|
|
title [#{unixFormat(event.start_datetime,"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
|
2023-03-28 19:04:16 +02:00
|
|
|
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>
|
2023-03-28 19:04:16 +02:00
|
|
|
| <small>(#{unixFormat(event.start_datetime,"EEEE, 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
|
|
|
|