A unique ID, generated automatically. Use it when other content needs a stable way to refer to an entry, independent of its title or filename.

Add this field under fields in .pages.yml:

- name: id
  type: uuid

A saved value in YAML or Markdown front matter might look like:

id: 550e8400-e29b-41d4-a716-446655440000

New entries get a random UUID (version 4). To start empty instead, set default: "". Generating a new ID changes the value; anything that refers to the old one won't follow it. A saved value must be a valid UUID.

Options

Option Description
editable true to let editors type their own value.
generate false to hide the button that generates a new ID.