Commit d4aa2b04 authored by Arunoda Susiripala's avatar Arunoda Susiripala

Allow create dynamic content.

parent dcc32284
......@@ -64,7 +64,7 @@ export default async function (dir) {
const req = { url: path }
const res = {}
const htmlFilename = page === '/' ? 'index.html' : `${page}${sep}index.html`
const htmlFilename = path === '/' ? 'index.html' : `${path}${sep}index.html`
const baseDir = join(outDir, dirname(htmlFilename))
const htmlFilepath = join(outDir, htmlFilename)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment