Commit da8ec9c9 authored by cgm616's avatar cgm616

Try to fix intermittent build error on layouts

Something with nested() and layouts() was not working well.
parent abed8d12
......@@ -45,7 +45,8 @@ Metalsmith(__dirname) // instantiate Metalsmith in the cwd
shouldServe,
watch({
paths: {
"**/*.*": "**/*",
"nested/**/*.*": "**/*",
"${source}/**/*.*": "**/*",
},
})
))
......@@ -69,10 +70,15 @@ Metalsmith(__dirname) // instantiate Metalsmith in the cwd
collection: 'articles'
}))
.use(permalinks())
.use(nested())
.use(layouts({ // wrap a handlebars-layout
engine: 'handlebars' // around transpiled html-files
.use(nested({
directory: 'nested',
generated: 'layouts'
}))
.use(layouts({
engine: 'handlebars',
directory: 'layouts'
}))
.use(nested())
.use(branch('index.html').use(inline({
compress: true,
rootpath: path.resolve('src/'),
......
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