diff options
author | terminaldweller <devi@terminaldweller.com> | 2023-11-08 21:48:11 +0000 |
---|---|---|
committer | terminaldweller <devi@terminaldweller.com> | 2023-11-08 21:48:11 +0000 |
commit | 5cd8563d08d271f5396525fdcf77c839cb4f6ad5 (patch) | |
tree | 6ed09d041392957869910c1487528c5e4a838660 /put_in_db.js | |
parent | new blog post (diff) | |
download | blog-5cd8563d08d271f5396525fdcf77c839cb4f6ad5.tar.gz blog-5cd8563d08d271f5396525fdcf77c839cb4f6ad5.zip |
new blog post
Diffstat (limited to 'put_in_db.js')
-rw-r--r-- | put_in_db.js | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/put_in_db.js b/put_in_db.js index da5a050..a1de3ef 100644 --- a/put_in_db.js +++ b/put_in_db.js @@ -23,4 +23,15 @@ blog_entry_2 = { lastUpdatedAt: Date.now(), }; -db.blogposts.insertMany([blog_entry_1, blog_entry_2]); +blog_entry_3 = { + title: "One Chat Client For Everything", + slug: "one_chat_client_for_everything", + body: fs.readFileSync( + path.join(__dirname) + "/mds/oneclientforeverything.md" + ), + teaser: "One Chat Client For Everything", + keywords: "irc,matrix,mattermost,matterbridge,bitlbee,irssi", + lastUpdatedAt: Date.now(), +}; + +db.blogposts.insertMany([blog_entry_1, blog_entry_2, blog_entry_3]); |