Check type ID#

kind: filesystem_parent_dir_matches_field

Purpose#

Require the parent directory name to equal a frontmatter field.

Configuration keys#

FieldRequiredDefaultMeaning
fieldyes-Frontmatter key compared to the parent directory name.

Example#

collections:
  notes:
    path: notes
    checks:
      - kind: filesystem_parent_dir_matches_field
        field: category