aboutsummaryrefslogtreecommitdiffstats
path: root/model.js
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2022-07-06 10:01:50 +0000
committerterminaldweller <thabogre@gmail.com>2022-07-06 10:01:50 +0000
commitdc57f759c616a23b1baf10b1ea71cca6ba581831 (patch)
treee641e4da50d2b616c10090b7178ec6ed86815f0d /model.js
parentWIP, adding rss to the blog (diff)
downloadblog-dc57f759c616a23b1baf10b1ea71cca6ba581831.tar.gz
blog-dc57f759c616a23b1baf10b1ea71cca6ba581831.zip
now the blog uses the db for everything. now need to decide on how to populate the DB and prevent duplication
Diffstat (limited to 'model.js')
-rw-r--r--model.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/model.js b/model.js
index d4bfc83..5df1270 100644
--- a/model.js
+++ b/model.js
@@ -46,9 +46,9 @@ function populateDB(model) {
.toString();
let newBlogPost = new model({
title: fileName,
- slug: "slug",
+ slug: fileName,
body: fileContent,
- teaser: "teaser",
+ teaser: fileName,
keywords: ["kw1", "kw2"],
});
newBlogPost.save();