From 2c437f4ca76e107ce3eb3c93ae2fc183caf6caab Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Wed, 6 Jul 2022 17:05:17 +0430 Subject: more fixes for the rss feed --- server.js | 1 - views/rss_feed_v2.pug | 9 +++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/server.js b/server.js index b609018..eea4695 100755 --- a/server.js +++ b/server.js @@ -25,7 +25,6 @@ const morgan = require("morgan"); const model = require("./model"); model.dbInit(); -// model.populateDB(model.blogPost); const app = express(); app.disable("x-powered-by"); diff --git a/views/rss_feed_v2.pug b/views/rss_feed_v2.pug index b680cb9..261f054 100644 --- a/views/rss_feed_v2.pug +++ b/views/rss_feed_v2.pug @@ -1,11 +1,12 @@ doctype xml -rss(version='2.0') +rss(version='2.0', xmlns:atom='http://www.w3.org/2005/Atom') channel title deviblog - link https://blog.terminaldweller.com + link https://blog.terminaldweller.com + atom:link(href='https://blog.terminaldweller.com/feed/rss', rel='self', type='application/rss+xml') description I talk about software here. - managingEditor devi@terminaldweller.com - webMaster devi@terminaldweller.com + managingEditor devi@terminaldweller.com (Farzad Sadeghi) + webMaster devi@terminaldweller.com (Farzad Sadeghi) language en-US if posts.length lastBuildDate= new Date(posts[0].lastUpdatedAt).toUTCString() -- cgit v1.2.3