aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2022-07-06 12:35:17 +0000
committerterminaldweller <thabogre@gmail.com>2022-07-06 12:35:17 +0000
commit2c437f4ca76e107ce3eb3c93ae2fc183caf6caab (patch)
tree5c9875b7a0580a95d35e72f1b9afb74df2e6b86c
parentfixed rss validator errors except atom error (diff)
downloadblog-2c437f4ca76e107ce3eb3c93ae2fc183caf6caab.tar.gz
blog-2c437f4ca76e107ce3eb3c93ae2fc183caf6caab.zip
more fixes for the rss feed
-rwxr-xr-xserver.js1
-rw-r--r--views/rss_feed_v2.pug9
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='<a href="http://www.w3.org/2005/Atom" rel="nofollow">http://www.w3.org/2005/Atom</a>')
channel
title deviblog
- link https://blog.terminaldweller.com
+ link <a href="https://blog.terminaldweller.com" rel="nofollow">https://blog.terminaldweller.com</a>
+ atom:link(href='<a href="https://blog.terminaldweller.com/feed/rss" rel="nofollow">https://blog.terminaldweller.com/feed/rss</a>', 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()