We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When edit link is enabled in the config, disabling it via frontmatter on a page is not possible. This seems to be caused here https://github.com/vuejs/vitepress/blob/master/src/client/theme-default/composables/editLink.ts#L19.
Intending to open a PR if the expected behaviour is agreed upon.
editLink
true
editLink: false
Edit this page
Expecting that when either editLink: false or editLink: "false" is passed in via frontmatter, that the edit link is not rendered on that page.
editLink: "false"
System: OS: Linux 5.10 Manjaro Linux CPU: (8) x64 Intel(R) Core(TM) i7-8809G CPU @ 3.10GHz Memory: 19.23 GB / 31.28 GB Container: Yes Shell: 5.1.4 - /bin/bash Binaries: Node: 16.0.0 - ~/.config/nvm/versions/node/v16.0.0/bin/node Yarn: 1.22.5 - ~/.yarn/bin/yarn npm: 7.10.0 - ~/.config/nvm/versions/node/v16.0.0/bin/npm npmPackages: vitepress: 0.15.6 => 0.15.6
No response
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Describe the bug
When edit link is enabled in the config, disabling it via frontmatter on a page is not possible.
This seems to be caused here https://github.com/vuejs/vitepress/blob/master/src/client/theme-default/composables/editLink.ts#L19.
Intending to open a PR if the expected behaviour is agreed upon.
Reproduction
editLink
totrue
in the configeditLink: false
to the frontmatter of a documentation pageEdit this page
link still shows upExpected behavior
Expecting that when either
editLink: false
oreditLink: "false"
is passed in via frontmatter, that the edit link is not rendered on that page.System Info
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: