Check type ID#

kind: filesystem_name_matches_field

Purpose#

Require a name to equal a frontmatter field, optionally slugified.

Configuration keys#

FieldRequiredDefaultMeaning
fieldnoslugFrontmatter key compared to the name.
transformnononenone or slugify (applied to the field value before comparison).
targetnofilenameWhat to test: filename, filename-ext, or parent-dir.

Example#

collections:
  notes:
    path: notes
    checks:
      - kind: filesystem_name_matches_field
        field: slug