Skip to content

Commit 5f6297c

Browse files
rickdubielbrc-dd
andauthoredMar 7, 2024··
feat(theme): allow selectively disabling external link icon on navbar items (#3607)
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
1 parent 59183e9 commit 5f6297c

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed
 

‎docs/pt/reference/default-theme-config.md

+1
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ interface NavItemWithLink {
9393
activeMatch?: string
9494
target?: string
9595
rel?: string
96+
noIcon?: boolean
9697
}
9798

9899
interface NavItemChildren {

‎docs/reference/default-theme-config.md

+1
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ interface NavItemWithLink {
9393
activeMatch?: string
9494
target?: string
9595
rel?: string
96+
noIcon?: boolean
9697
}
9798

9899
interface NavItemChildren {

‎docs/zh/reference/default-theme-config.md

+1
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ interface NavItemWithLink {
9393
activeMatch?: string
9494
target?: string
9595
rel?: string
96+
noIcon?: boolean
9697
}
9798

9899
interface NavItemChildren {

‎src/client/theme-default/components/VPNavBarMenuLink.vue

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const { page } = useData()
2222
)
2323
}"
2424
:href="item.link"
25+
:noIcon="item.noIcon"
2526
:target="item.target"
2627
:rel="item.rel"
2728
tabindex="0"

‎types/default-theme.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ export namespace DefaultTheme {
176176
activeMatch?: string
177177
rel?: string
178178
target?: string
179+
noIcon?: boolean
179180
}
180181

181182
export interface NavItemChildren {

0 commit comments

Comments
 (0)
Please sign in to comment.