Skip to content
Permalink
Browse files
use _body.html
  • Loading branch information
pissang committed May 20, 2021
1 parent cf36f52 commit 85a9906cd1ead2a11253c3522b65dd4ff1b31c64
Showing 1 changed file with 1 addition and 1 deletion.
@@ -206,7 +206,7 @@ async function buildJade(config) {
if (pageCfg) {
cfg.pageConfig = Object.assign({}, pageCfg, {
// Because jade doesn't support dynamic include. we have to read HTML and insert it in jade manually.
bodyHtml: fs.readFileSync(path.resolve(__dirname, `../_generated/spa/${pageCfg.pageName}/body.html`), 'utf-8')
bodyHtml: fs.readFileSync(path.resolve(__dirname, `../_generated/spa/${pageCfg.pageName}/_body.html`), 'utf-8')
});
}
else {

0 comments on commit 85a9906

Please sign in to comment.