gancio-upstream/views/feed/rss.pug

28 lines
1.4 KiB
Text
Raw Normal View History

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
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>
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}
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>
| <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
| ]]>
pubDate= new Date(event.updatedAt).toUTCString()
guid #{settings.baseurl}/event/#{event.slug || event.id}
2022-01-12 22:57:09 +01:00