mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
add categories and featimg as enclusure in rss
This commit is contained in:
parent
2c752912c5
commit
7440dbdba1
1 changed files with 5 additions and 1 deletions
|
@ -7,8 +7,12 @@ rss(version='2.0' xmlns:atom="http://www.w3.org/2005/Atom")
|
|||
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>
|
||||
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}
|
||||
description
|
||||
| <![CDATA[
|
||||
| <h4>#{event.title}</h4>
|
||||
|
@ -19,5 +23,5 @@ rss(version='2.0' xmlns:atom="http://www.w3.org/2005/Atom")
|
|||
| <pre>!{event.description}</pre>
|
||||
| ]]>
|
||||
pubDate= new Date(event.updatedAt).toUTCString()
|
||||
guid(isPermaLink='false') #{settings.baseurl}/event/#{event.slug || event.id}
|
||||
guid #{settings.baseurl}/event/#{event.slug || event.id}
|
||||
|
||||
|
|
Loading…
Reference in a new issue