metalsmith / layouts

A metalsmith plugin for layouts
MIT License
116 stars 49 forks source link

Remove layouts when in source directory? #189

Open webketje opened 11 months ago

webketje commented 11 months ago

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: