From 516c7e0f73e399d0e5fc97ab0d06a30981c5ac1f Mon Sep 17 00:00:00 2001 From: bingus_violet Date: Tue, 9 Jul 2024 17:53:14 -0500 Subject: [PATCH] Blog title & description --- assets/html/blog.html | 2 +- blog.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/assets/html/blog.html b/assets/html/blog.html index 893a216..cf0f2e6 100644 --- a/assets/html/blog.html +++ b/assets/html/blog.html @@ -10,7 +10,7 @@ - {BLOG_TITLE} + {BLOG_TITLE} - Violet's Purgatory diff --git a/blog.js b/blog.js index 9c182ed..1170630 100644 --- a/blog.js +++ b/blog.js @@ -22,6 +22,9 @@ app.use((req, res, next) => { html = pageUpdater.converter(html, false) + html = html.replaceAll("{BLOG_TITLE}", post.title) + html = html.replaceAll("{BLOG_DESC}", post.desc) + res.send(html) return }