gancio-upstream/app/views/feed/rss.pug

24 lines
1.3 KiB
Text
Raw Normal View History

2019-02-26 00:02:42 +01:00
doctype xml
rss(version='2.0', xmlns:atom='<a href="http://www.w3.org/2005/Atom" rel="nofollow">http://www.w3.org/2005/Atom</a>')
channel
title #{config.title}
link <a href="#{config.baseurl}" rel="nofollow">#{config.baseurl}</a>
2019-03-07 14:59:28 +01:00
<atom:link href="#{config.apiurl}/export/feed/rss" rel='self' type='application/rss+xml' />
2019-02-26 00:02:42 +01:00
description #{config.description}
language #{config.locale}
//- if events.length
lastBuildDate= new Date(posts[0].publishedAt).toUTCString()
each event in events
item
title= event.title
2019-03-03 01:09:56 +01:00
link <a href="#{config.baseurl}/event/#{event.id}" rel="nofollow">#{config.baseurl}/event/#{event.id}</a>
2019-02-26 00:02:42 +01:00
description
| <![CDATA[
| <h4>#{event.title}</h4>
| <strong>#{event.place.name} - #{event.place.address}</strong>
| #{moment(event.start_datetime).format("ddd, D MMMM HH:mm")}<br/>
2019-03-07 14:59:28 +01:00
| <img src="#{config.apiurl}/#{event.image_path}"/>
2019-03-04 02:15:22 +01:00
| <pre>!{event.description}</pre>
2019-02-26 00:02:42 +01:00
| ]]>
2019-03-04 02:15:22 +01:00
pubDate= new Date(event.createdAt).toUTCString()
2019-02-26 00:02:42 +01:00
guid(isPermaLink='false') <a href="#{config.baseurl}/event/#{event.id}" rel="nofollow">#{config.baseurl}/event/#{event.id}</a>