Restore globbed path behavior in front matter defaults (#9762)

Restore existing behavior in v4.3.x wherein a scope with path
`_*/**/index.md` matches `_label/index.md` as well instead of just
`_label/dir/index.md`.
This commit is contained in:
Ashwin Maroli
2025-01-29 18:01:40 +05:30
committed by GitHub
parent 33e8a84a00
commit c5cd1fb04f
6 changed files with 7 additions and 40 deletions

View File

@@ -109,7 +109,7 @@ module Jekyll
sanitized_path = sanitize_path(path)
if rel_scope_path.include?("*")
File.fnmatch?(strip_collections_dir(rel_scope_path), sanitized_path)
glob_scope(sanitized_path, rel_scope_path)
else
path_is_subpath?(sanitized_path, strip_collections_dir(rel_scope_path))
end