validate rss feed
This commit is contained in:
parent
e03b9c4499
commit
4cb790c471
1 changed files with 4 additions and 4 deletions
|
@ -1,18 +1,18 @@
|
|||
doctype xml
|
||||
rss(version='2.0' xmlns:atom="http://www.w3.org/2005/Atom")
|
||||
channel
|
||||
atom:link(href=`${settings.baseurl}/feed/rss` rel="self" type="application/rss+xml")
|
||||
title #{settings.title}
|
||||
atom:link(href=`${link}` rel="self" type="application/rss+xml")
|
||||
title #{title}
|
||||
link #{settings.baseurl}
|
||||
description #{settings.description}
|
||||
each event in events
|
||||
item
|
||||
if (event.media && event.media.length)
|
||||
<enclosure url="#{settings.baseurl}/media/#{event.media[0].url}" type='image/jpeg'></enclosure>
|
||||
<enclosure url="#{settings.baseurl}/media/#{event.media[0].url}" type='image/jpeg' length="#{event.media[0].size||1}"></enclosure>
|
||||
title [#{moment.unix(event.start_datetime).format("YY-MM-DD")}] #{event.title} @#{event.place.name}
|
||||
link #{settings.baseurl}/event/#{event.slug || event.id}
|
||||
each tag in event.tags
|
||||
category #{tag.tag}
|
||||
category #{tag}
|
||||
description
|
||||
| <![CDATA[
|
||||
| <h4>#{event.title}</h4>
|
||||
|
|
Loading…
Reference in a new issue