fix: override target and rel links attribute in config (#332)

pull/363/head
Sacha STAFYNIAK 3 years ago committed by GitHub
parent cfbba80a0a
commit 9d98dbbe60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -28,8 +28,8 @@ export function useNavLink(item: Ref<DefaultTheme.NavItemWithLink>) {
isExternal
},
href: isExternal ? item.value.link : withBase(item.value.link),
target: item.value.target || isExternal ? `_blank` : null,
rel: item.value.rel || isExternal ? `noopener noreferrer` : null,
target: item.value.target || (isExternal ? `_blank` : null),
rel: item.value.rel || (isExternal ? `noopener noreferrer` : null),
'aria-label': item.value.ariaLabel
}
})

Loading…
Cancel
Save