Prev Next Links
Customize the previous and next page links displayed at the bottom of doc pages in VitePress.
You can customize the text and link for the previous and next pages (shown at doc footer). This is helpful if you want a different text there than what you have on your sidebar. Additionally, you may find it useful to disable the footer or link to a page that is not included in your sidebar.
-
Type:
string | false | { text?: string; link?: string } -
Details:
Specifies the text/link to show on the link to the previous page. If you don't set this in frontmatter, the text/link will be inferred from the sidebar config.
-
Examples:
-
To customize only the text:
YAML --- prev: 'Get Started | Markdown' --- -
To customize both text and link:
YAML --- prev: text: 'Markdown' link: '/guide/markdown' --- -
To hide previous page:
YAML --- prev: false ---
-
Same as prev but for the next page.