From b253fac1c48b92db297d5f410b1cfe80ead4b2f8 Mon Sep 17 00:00:00 2001 From: deadvey Date: Sat, 30 May 2026 20:51:19 +0100 Subject: [PATCH] fixed tag rendering url and static files url --- src/functions.js | 2 +- src/server.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/functions.js b/src/functions.js index 54c3e40..405026a 100644 --- a/src/functions.js +++ b/src/functions.js @@ -69,7 +69,7 @@ export function render_tags(tags) { for (let tag_index = 0; tag_index < tags.length; tag_index++) { // Loop over each tag - string += `#${tags[tag_index].trim()} ` // Adds the tag to the string as a HTML href + string += `#${tags[tag_index].trim()} ` // Adds the tag to the string as a HTML href } } return string diff --git a/src/server.js b/src/server.js index 6f44b2c..62651c7 100644 --- a/src/server.js +++ b/src/server.js @@ -26,7 +26,7 @@ catch (error) { const app = express(); app.use(express.urlencoded({ extended: true })); app.use(express.json()); -app.use(express.static(config.root_path)); +app.use(config.site_path, express.static(config.root_path)); // set the view engine to ejs app.set('view engine', 'ejs'); app.set('views', '../views')