fix(edit-link): let page frontmatter overwrite global editLink setting

Closes #334
pull/340/head
Dirk de Visser 4 years ago
parent aa9f9094b5
commit 8fb6851238
No known key found for this signature in database
GPG Key ID: 5338E249BC518BDF

@ -16,7 +16,10 @@ export function useEditLink() {
editLinks
} = theme.value
const showEditLink = frontmatter.value.editLink || editLinks
const showEditLink =
frontmatter.value.editLink !== undefined
? frontmatter.value.editLink
: editLinks
const { relativePath } = page.value
if (!showEditLink || !relativePath || !repo) {

Loading…
Cancel
Save