Check type ID#

kind: filesystem_unique_field

Scope: collection, runs once per collection over all its items.

Purpose#

Require that no two items share a value for a frontmatter field.

Configuration keys#

FieldRequiredDefaultMeaning
fieldyes-Frontmatter key whose value must be unique across the collection.

Example#

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