Skip to content

Eliminate read overhead for in-source layouts #189

@webketje

Description

@webketje

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions