Skip to content

Commit

Permalink
perf: use direct link
Browse files Browse the repository at this point in the history
Signed-off-by: ZTL-UwU <zhangtianli2006@163.com>
  • Loading branch information
ZTL-UwU committed Jan 13, 2025
1 parent 04580b3 commit 65dcd2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/layout/Aside.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<ul v-if="config.aside.useLevel" class="flex flex-col gap-1 border-b pb-4">
<li v-for="link in navigation" :key="link.id">
<NuxtLink
:to="link._path"
:to="link.redirect ?? link._path"
class="flex h-8 items-center gap-2 rounded-md p-2 text-sm text-foreground/80 hover:bg-muted hover:text-primary"
:class="[
path.startsWith(link._path) && 'bg-muted !text-primary',
Expand Down
2 changes: 1 addition & 1 deletion content/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ announcement:
target: _blank
actions:
- name: Get Started
to: /getting-started
to: /getting-started/introduction
- name: GitHub
variant: outline
to: https://github.com/ZTL-UwU/shadcn-docs-nuxt
Expand Down

0 comments on commit 65dcd2e

Please sign in to comment.