fix rss
This commit is contained in:
@@ -1,9 +1,8 @@
|
|||||||
doctype xml
|
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>')
|
rss(version='2.0')
|
||||||
channel
|
channel
|
||||||
title #{config.title}
|
title #{config.title}
|
||||||
link <a href="#{config.baseurl}" rel="nofollow">#{config.baseurl}</a>
|
link #{config.baseurl}
|
||||||
<atom:link href="#{config.apiurl}/export/feed/rss" rel='self' type='application/rss+xml' />
|
|
||||||
description #{config.description}
|
description #{config.description}
|
||||||
language #{config.locale}
|
language #{config.locale}
|
||||||
//- if events.length
|
//- if events.length
|
||||||
@@ -11,7 +10,7 @@ rss(version='2.0', xmlns:atom='<a href="http://www.w3.org/2005/Atom" rel="nofoll
|
|||||||
each event in events
|
each event in events
|
||||||
item
|
item
|
||||||
title= event.title
|
title= event.title
|
||||||
link <a href="#{config.baseurl}/event/#{event.id}" rel="nofollow">#{config.baseurl}/event/#{event.id}</a>
|
link #{config.baseurl}/event/#{event.id}
|
||||||
description
|
description
|
||||||
| <![CDATA[
|
| <![CDATA[
|
||||||
| <h4>#{event.title}</h4>
|
| <h4>#{event.title}</h4>
|
||||||
@@ -21,4 +20,4 @@ rss(version='2.0', xmlns:atom='<a href="http://www.w3.org/2005/Atom" rel="nofoll
|
|||||||
| <pre>!{event.description}</pre>
|
| <pre>!{event.description}</pre>
|
||||||
| ]]>
|
| ]]>
|
||||||
pubDate= new Date(event.createdAt).toUTCString()
|
pubDate= new Date(event.createdAt).toUTCString()
|
||||||
guid(isPermaLink='false') <a href="#{config.baseurl}/event/#{event.id}" rel="nofollow">#{config.baseurl}/event/#{event.id}</a>
|
guid(isPermaLink='false') #{config.baseurl}/event/#{event.id}
|
||||||
Reference in New Issue
Block a user