diff --git a/src/client/theme-default/composables/editLink.ts b/src/client/theme-default/composables/editLink.ts index 80e85373b6b9..f6cfdcc30063 100644 --- a/src/client/theme-default/composables/editLink.ts +++ b/src/client/theme-default/composables/editLink.ts @@ -16,7 +16,10 @@ export function useEditLink() { editLinks } = theme.value - const showEditLink = frontmatter.value.editLink || editLinks + const showEditLink = + frontmatter.value.editLink != null + ? frontmatter.value.editLink + : editLinks const { relativePath } = page.value if (!showEditLink || !relativePath || !repo) {