gancio-upstream/views/feed/rss.pug

31 lines
1.6 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>
2023-09-25 22:32:09 +02:00
title [#{unixFormat(event.start_datetime,"yyyy-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
2023-10-30 09:36:18 +01:00
category #{tag.tag || tag}
2019-06-06 23:54:32 +02:00
description
| <![CDATA[
| <h3>#{event.title}</h3>
if (event.place.name === 'online')
| <strong>online - <a href="#{event.online_locations[0]}">#{event.online_locations[0]}</a></strong>
else
| <strong>#{event.place.name} - #{event.place.address}</strong>
| <br/><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