Skip to content

Commit 9ed99bc

Browse files
committed
feat: Update resource links in footer for improved navigation
1 parent f0b2111 commit 9ed99bc

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

docs-v3/components/website/WebsiteFooter.vue

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,23 @@
3434
<h3 class="font-semibold mb-4 text-gray-900 dark:text-white">Resources</h3>
3535
<ul class="space-y-3">
3636
<li v-for="link in resourceLinks" :key="link.label">
37-
<component
38-
:is="link.isExternal ? 'a' : 'NuxtLink'"
39-
:to="!link.isExternal ? link.href : undefined"
40-
:href="link.isExternal ? link.href : undefined"
41-
:target="link.isExternal ? '_blank' : undefined"
42-
:rel="link.isExternal ? 'noopener noreferrer' : undefined"
37+
<NuxtLink
38+
v-if="!link.isExternal"
39+
:to="link.href"
4340
class="text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white transition-colors flex items-center group"
4441
>
4542
{{ link.label }}
46-
<ArrowTopRightOnSquareIcon v-if="link.isExternal" class="w-3 h-3 ml-1 opacity-50 group-hover:opacity-100" />
47-
</component>
43+
</NuxtLink>
44+
<a
45+
v-else
46+
:href="link.href"
47+
target="_blank"
48+
rel="noopener noreferrer"
49+
class="text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white transition-colors flex items-center group"
50+
>
51+
{{ link.label }}
52+
<ArrowTopRightOnSquareIcon class="w-3 h-3 ml-1 opacity-50 group-hover:opacity-100" />
53+
</a>
4854
</li>
4955
</ul>
5056
</div>
@@ -101,8 +107,8 @@ interface FooterLink {
101107
102108
const resourceLinks: FooterLink[] = [
103109
{ label: 'Documentation', href: '/docs', isExternal: false },
104-
{ label: 'Getting Started', href: '/docs/quickstart', isExternal: false },
105-
{ label: 'Changelog', href: 'https://github.com/binarcode/laravel-restify/blob/main/CHANGELOG.md', isExternal: true },
110+
{ label: 'Getting Started', href: '/docs/getting-started/quickstart', isExternal: false },
111+
{ label: 'Changelog', href: 'https://github.com/binarcode/laravel-restify/blob/10.x/CHANGELOG.md', isExternal: true },
106112
{ label: 'Releases', href: 'https://github.com/binarcode/laravel-restify/releases', isExternal: true }
107113
]
108114

0 commit comments

Comments
 (0)