Check type ID#
kind: filesystem_parent_dir_matches_field
Purpose#
Require the parent directory name to equal a frontmatter field.
Configuration keys#
| Field | Required | Default | Meaning |
|---|---|---|---|
field | yes | - | Frontmatter key compared to the parent directory name. |
Example#
collections:
notes:
path: notes
checks:
- kind: filesystem_parent_dir_matches_field
field: category