Glob pattern (wildcards) for default path not working in Jekyll 4.2

Maybe I’m doing something wrong, but I’ve tried multiple ways of using the glob pattern in the defaults path using Jekyll 4.2, and nothing seems to work. Docs say this is for 3.7 and beyond (Front Matter Defaults | Jekyll • Simple, blog-aware, static sites), but I’m wondering if this feature didn’t get ported over to newer versions…

Example:

- scope:
      path: "_ds-patterns/books/*"
    values:
      topic: ds-patterns

Could be your indentation. Jekyll expects the following as per the docs:

defaults:
  -
    scope:
      path: "_ds-patterns/books/*"
    values:
      topic: ds-patterns
1 Like