This page demonstrates the id frontmatter option which allows you to define a custom document ID for referencing.
The id field is used for:
pagination_next and pagination_prev fieldsAdd the id property to your frontmatter:
---
title: My Page
id: my-custom-id
---
Then you can reference this document by ID in other pages:
---
pagination_next: my-custom-id
---
This page uses:
id: my-custom-doc-id
When id is not specified:
docs/getting-started.md becomes docs/getting-started.md)Custom document IDs are useful for:
slug frontmatter, not the id