gancio-upstream/views/feed/rss.pug

23 lines
1 KiB
Text
Raw Normal View History

2019-06-06 23:54:32 +02:00
doctype xml
rss(version='2.0')
channel
title #{config.title}
link #{config.baseurl}
description #{config.description}
language #{config.locale}
each event in events
item
2019-08-07 19:15:15 +02:00
title [#{moment.unix(event.start_datetime).format("YY-MM-DD")}] #{event.title} @#{event.place.name}
2019-06-06 23:54:32 +02:00
link #{config.baseurl}/event/#{event.id}
description
| <![CDATA[
| <h4>#{event.title}</h4>
| <strong>#{event.place.name} - #{event.place.address}</strong>
2019-08-07 19:15:15 +02:00
| <small>(#{moment.unix(event.start_datetime).format("dddd, D MMMM HH:mm")})</small><br/>
if (event.image_path)
| <img src="#{config.apiurl}/media/#{event.image_path}"/>
2019-06-06 23:54:32 +02:00
| <pre>!{event.description}</pre>
| ]]>
pubDate= new Date(event.createdAt).toUTCString()
2019-07-26 23:51:32 +02:00
guid(isPermaLink='false') #{config.baseurl}/event/#{event.id}