From 7440dbdba1f98e58b7f638adae895be90b6ef206 Mon Sep 17 00:00:00 2001 From: lesion Date: Mon, 17 Jan 2022 12:04:42 +0100 Subject: [PATCH] add categories and featimg as enclusure in rss --- views/feed/rss.pug | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/views/feed/rss.pug b/views/feed/rss.pug index b95a9972..cff7fbce 100644 --- a/views/feed/rss.pug +++ b/views/feed/rss.pug @@ -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) + 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 | #{event.title} @@ -19,5 +23,5 @@ rss(version='2.0' xmlns:atom="http://www.w3.org/2005/Atom") |
!{event.description}
| ]]> pubDate= new Date(event.updatedAt).toUTCString() - guid(isPermaLink='false') #{settings.baseurl}/event/#{event.slug || event.id} + guid #{settings.baseurl}/event/#{event.slug || event.id}