mirror of https://github.com/vuejs/vitepress
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
942 B
44 lines
942 B
2 years ago
|
# Prev Next Links
|
||
3 years ago
|
|
||
2 years ago
|
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.
|
||
2 years ago
|
|
||
|
## prev
|
||
|
|
||
2 years ago
|
- Type: `string | false | { text?: string; link?: string }`
|
||
2 years ago
|
|
||
|
- Details:
|
||
|
|
||
2 years ago
|
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.
|
||
2 years ago
|
|
||
2 years ago
|
- Examples:
|
||
2 years ago
|
|
||
2 years ago
|
- To customize only the text:
|
||
2 years ago
|
|
||
2 years ago
|
```yaml
|
||
|
---
|
||
|
prev: 'Get Started | Markdown'
|
||
|
---
|
||
|
```
|
||
2 years ago
|
|
||
2 years ago
|
- To customize both text and link:
|
||
2 years ago
|
|
||
2 years ago
|
```yaml
|
||
|
---
|
||
|
prev:
|
||
|
text: 'Markdown'
|
||
|
link: '/guide/markdown'
|
||
|
---
|
||
|
```
|
||
2 years ago
|
|
||
2 years ago
|
- To hide previous page:
|
||
|
|
||
|
```yaml
|
||
|
---
|
||
|
prev: false
|
||
|
---
|
||
|
```
|
||
|
|
||
|
## next
|
||
2 years ago
|
|
||
2 years ago
|
Same as `prev` but for the next page.
|