aboutsummaryrefslogtreecommitdiffstats
path: root/views/rss_feed_v2.pug
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2022-07-06 11:53:42 +0000
committerterminaldweller <thabogre@gmail.com>2022-07-06 11:53:42 +0000
commitc9f5b12ab281c8889364bfb2455dc97fdb92e9f9 (patch)
treec295968cc0d733ac4e071a87f9bab54c414bd383 /views/rss_feed_v2.pug
parentWIP, we now have to fix the pug template which is not working (diff)
downloadblog-c9f5b12ab281c8889364bfb2455dc97fdb92e9f9.tar.gz
blog-c9f5b12ab281c8889364bfb2455dc97fdb92e9f9.zip
a newer simpler template for the rss feed
Diffstat (limited to '')
-rw-r--r--views/rss_feed_v2.pug21
1 files changed, 21 insertions, 0 deletions
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
+ | <![CDATA[
+ | #{post.teaser}
+ | ]]>
+ pubDate= new Date(post.lastUpdatedAt).toUTCString()
+ guid(isPermaLink='false') https://blog.terminaldweller.com/blog/#{post.slug}