Fixes blog entry URLs with custom folder names.
This commit is contained in:
traxam 2019-06-09 11:48:27 +02:00 committed by imfunny
parent aac4592673
commit d47fc6c269
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ function createBlog(title, subtitle, pagetitle, folder) {
fs.writeFile(`${outDir}/blog/${folder}/index.html`, '<!DOCTYPE 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",