validate rss feed

This commit is contained in:
lesion 2022-06-18 01:14:41 +02:00
parent e03b9c4499
commit 4cb790c471
No known key found for this signature in database
GPG key ID: 352918250B012177

View file

@ -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>