Skip to content

Commit

Permalink
feat(theme): allow selectively disabling external link icon on navbar…
Browse files Browse the repository at this point in the history
… items (#3607)

Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
  • Loading branch information
rickdubiel and brc-dd authored Mar 7, 2024
1 parent 59183e9 commit 5f6297c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/pt/reference/default-theme-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ interface NavItemWithLink {
activeMatch?: string
target?: string
rel?: string
noIcon?: boolean
}

interface NavItemChildren {
Expand Down
1 change: 1 addition & 0 deletions docs/reference/default-theme-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ interface NavItemWithLink {
activeMatch?: string
target?: string
rel?: string
noIcon?: boolean
}

interface NavItemChildren {
Expand Down
1 change: 1 addition & 0 deletions docs/zh/reference/default-theme-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ interface NavItemWithLink {
activeMatch?: string
target?: string
rel?: string
noIcon?: boolean
}

interface NavItemChildren {
Expand Down
1 change: 1 addition & 0 deletions src/client/theme-default/components/VPNavBarMenuLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const { page } = useData()
)
}"
:href="item.link"
:noIcon="item.noIcon"
:target="item.target"
:rel="item.rel"
tabindex="0"
Expand Down
1 change: 1 addition & 0 deletions types/default-theme.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ export namespace DefaultTheme {
activeMatch?: string
rel?: string
target?: string
noIcon?: boolean
}

export interface NavItemChildren {
Expand Down

0 comments on commit 5f6297c

Please sign in to comment.