From 3a25785769167bfc3872afbc66e2d8ab28f57695 Mon Sep 17 00:00:00 2001 From: traxam Date: Sat, 8 Jun 2019 19:29:12 +0200 Subject: [PATCH] Fixes #73 Fixes blog entry URLs with custom folder names. --- blog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blog.js b/blog.js index 70ce0fc..6b02e0d 100644 --- a/blog.js +++ b/blog.js @@ -31,7 +31,7 @@ function createBlog(title, subtitle, pagetitle, folder) { fs.writeFile(`${outDir}/blog/${folder}/index.html`, ''+window.document.documentElement.outerHTML, async function (error){ if (error) throw error; var blog_data = { - "url_title": pagetitle, + "url_title": folder, "title": title, "sub_title": subtitle, "top_image": "https://images.unsplash.com/photo-1553748024-d1b27fb3f960?w=1450",