What happens when the directory option is set inside the metalsmith.source(), eg.
metalsmith
.source('src')
.use(layouts({
directory: 'src/layouts'
}))
// currently requires @metalsmith/remove?
.use(remove('layouts'))
There is a limited set of cases where removing the layouts may not be desirable (eg. a design system that needs to show the source templates)
Resolution of this issue:
- Add a test case
- Add an option that defaults to current behavior for non-semver breaking release