Skip to content

Commit

Permalink
fix: override target and rel links attribute in config (#332)
Browse files Browse the repository at this point in the history
  • Loading branch information
stafyniaksacha authored Aug 5, 2021
1 parent cfbba80 commit 9d98dbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/theme-default/composables/navLink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
})
Expand Down

0 comments on commit 9d98dbb

Please sign in to comment.