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#
| Field | Required | Default | Meaning |
|---|---|---|---|
field | yes | - | Frontmatter key whose value must be unique across the collection. |
Example#
collections:
notes:
path: notes
checks:
- kind: filesystem_unique_field
field: slug