Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove layouts when in source directory? #189

Open
webketje opened this issue Oct 3, 2023 · 0 comments
Open

Remove layouts when in source directory? #189

webketje opened this issue Oct 3, 2023 · 0 comments

Comments

@webketje
Copy link
Member

webketje commented Oct 3, 2023

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant