Files
gancio/app/views/feed/rss.pug

23 lines
1002 B
Plaintext
Raw Normal View History

2019-02-26 00:02:42 +01:00
doctype xml
2019-03-24 15:07:51 +01:00
rss(version='2.0')
2019-02-26 00:02:42 +01:00
channel
title #{config.title}
2019-03-24 15:07:51 +01:00
link #{config.baseurl}
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-24 15:07:51 +01:00
link #{config.baseurl}/event/#{event.id}
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("dddd, D MMMM HH:mm")}<br/>
| <img src="#{config.apiurl}/../uploads/#{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-03-24 15:07:51 +01:00
guid(isPermaLink='false') #{config.baseurl}/event/#{event.id}