Skip to content

Commit

Permalink
replace back to home link on page not found with NuxtLink
Browse files Browse the repository at this point in the history
  • Loading branch information
probablyjassin committed Nov 23, 2024
1 parent e2a23e1 commit beb0068
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions pages/[...slug].vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<template>
<main>
<ContentDoc>
<template #not-found>
<div class="text-center py-16">
<h1 class="text-4xl font-bold mb-4">Document Not Found</h1>
<p class="text-lg mb-4">Sorry, the document you are looking for does not exist.</p>
<a href="/" class="text-primary underline">Go back to the homepage</a>
</div>
</template>
</ContentDoc>
</main>
<main>
<ContentDoc>
<template #not-found>
<div class="text-center py-16">
<h1 class="text-4xl font-bold mb-4">Document Not Found</h1>
<p class="text-lg mb-4">Sorry, the document you are looking for does not exist.</p>
<NuxtLink to="/" class="text-primary underline">Go back to the homepage</NuxtLink>
</div>
</template>
</ContentDoc>
</main>
</template>

0 comments on commit beb0068

Please sign in to comment.