mirror of https://github.com/vuejs/vitepress
feat(theme): custom prev/next labels and text (#897)
parent
89035d0f28
commit
836a24683a
@ -1,3 +1,29 @@
|
|||||||
# Prev Next Link
|
# Prev Next Link
|
||||||
|
|
||||||
Documentation coming soon...
|
You can customize the text of previous and next links. This is helpful if you want to show different text on previous/next links than what you have on your sidebar.
|
||||||
|
|
||||||
|
## prev
|
||||||
|
|
||||||
|
- Type: `string`
|
||||||
|
|
||||||
|
- Details:
|
||||||
|
|
||||||
|
Specify the text to show on the link to the previous page.
|
||||||
|
|
||||||
|
If you don't set this in frontmatter, the text will be inferred from the sidebar config.
|
||||||
|
|
||||||
|
- Example:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
---
|
||||||
|
prev: 'Get Started | Markdown'
|
||||||
|
---
|
||||||
|
```
|
||||||
|
|
||||||
|
## next
|
||||||
|
|
||||||
|
- Type: `string`
|
||||||
|
|
||||||
|
- Details:
|
||||||
|
|
||||||
|
Same as `prev` but for the next page.
|
||||||
|
Loading…
Reference in new issue