From c9f5b12ab281c8889364bfb2455dc97fdb92e9f9 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Wed, 6 Jul 2022 16:23:42 +0430 Subject: a newer simpler template for the rss feed --- views/rss_feed_v2.pug | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 views/rss_feed_v2.pug (limited to 'views/rss_feed_v2.pug') diff --git a/views/rss_feed_v2.pug b/views/rss_feed_v2.pug new file mode 100644 index 0000000..92c9a87 --- /dev/null +++ b/views/rss_feed_v2.pug @@ -0,0 +1,21 @@ +doctype xml +rss(version='2.0') + channel + title deviblog + link https://blog.terminaldweller.com + description I talk about software here. + managingEditro devi@terminaldweller.com + webMaster devi@terminaldweller.com + language en-US + if posts.length + lastBuildDate= new Date(posts[0].lastUpdatedAt).toUTCString() + each post in posts + item + title= post.title + link https://blog.terminaldweller.com/posts/#{post.slug} + description + | + pubDate= new Date(post.lastUpdatedAt).toUTCString() + guid(isPermaLink='false') https://blog.terminaldweller.com/blog/#{post.slug} -- cgit v1.2.3