-
Notifications
You must be signed in to change notification settings - Fork 4.7k
feat: Disable next and prev links from global config #1761
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
288ac0c
f19dc20
01f5b0c
3e70be8
d03a3fb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -409,17 +409,23 @@ module.exports = { | |
docsBranch: 'master', | ||
// defaults to false, set to true to enable | ||
editLinks: true, | ||
// default value is true. Allows to hide next page links on all pages | ||
nextLinks: false, | ||
// default value is true. Allows to hide prev page links on all pages | ||
prevLinks: false, | ||
// custom text for edit link. Defaults to "Edit this page" | ||
editLinkText: 'Help us improve this page!' | ||
} | ||
} | ||
``` | ||
|
||
You can also hide the edit link on a specific page via `YAML front matter`: | ||
You can overwrite the following properties on specific pages via `YAML front matter`: | ||
|
||
``` yaml | ||
--- | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It has already been mentioned in the previous section. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes but I think it's a good thing to also mention it here as users won't necessarily have read this part before. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I mean maybe you can update There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure! I can update both parts indeed 😉 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated in 003f4e8 |
||
editLink: false | ||
editLink: false # Will overwrite 'editLinks' from themeConfig | ||
prev: true # Will overwrite 'prevLinks' property from themeConfig | ||
next: ./my-next-page # Will overwrite 'nextLinks' property from themeConfig | ||
--- | ||
``` | ||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.