1
0
Fork 0
mirror of https://github.com/dilllxd/gitfolio.git synced 2024-08-14 22:28:09 +00:00
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

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",