aboutsummaryrefslogtreecommitdiffstats
path: root/server.js
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 /server.js
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 'server.js')
-rwxr-xr-xserver.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/server.js b/server.js
index 6d51d1b..286932d 100755
--- a/server.js
+++ b/server.js
@@ -25,7 +25,7 @@ const morgan = require("morgan");
const model = require("./model");
model.dbInit();
-model.populateDB(model.blogPost);
+// model.populateDB(model.blogPost);
const app = express();
app.disable("x-powered-by");
@@ -141,7 +141,7 @@ app.get("/rss/feed", (req, res) => {
.select("title slug lastUpdatedAt teaser")
.exec(function (err, posts) {
if (err) return err;
- return res.render("rss_feed.pug", { cache: true, posts: posts });
+ return res.render("rss_feed_v2.pug", { cache: true, posts: posts });
});
});