Check type ID#
kind: filesystem_name_matches_field
Purpose#
Require a name to equal a frontmatter field, optionally slugified.
Configuration keys#
| Field | Required | Default | Meaning |
|---|---|---|---|
field | no | slug | Frontmatter key compared to the name. |
transform | no | none | none or slugify (applied to the field value before comparison). |
target | no | filename | What to test: filename, filename-ext, or parent-dir. |
Example#
collections:
notes:
path: notes
checks:
- kind: filesystem_name_matches_field
field: slug