feat: add 404 page
This commit is contained in:
parent
b59e77f432
commit
04ab476d9b
@ -1 +1,12 @@
|
|||||||
<template>error!</template>
|
<script setup lang="ts">
|
||||||
|
import Default from "./default.vue";
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<Default>
|
||||||
|
<main class="flex flex-col grow">
|
||||||
|
<h1>404 - Not Found</h1>
|
||||||
|
<p>The page you are looking for cannot be found.</p>
|
||||||
|
</main>
|
||||||
|
</Default>
|
||||||
|
</template>
|
||||||
|
@ -19,6 +19,9 @@ export default defineNuxtConfig({
|
|||||||
sitemap: {
|
sitemap: {
|
||||||
hostname: process.env.BASE_URL || "https://eggworld.tk",
|
hostname: process.env.BASE_URL || "https://eggworld.tk",
|
||||||
},
|
},
|
||||||
|
generate: {
|
||||||
|
fallback: "404.html",
|
||||||
|
},
|
||||||
tailwindcss: {},
|
tailwindcss: {},
|
||||||
colorMode: {
|
colorMode: {
|
||||||
classSuffix: "",
|
classSuffix: "",
|
||||||
|
@ -49,6 +49,10 @@ const captionText =
|
|||||||
</template>
|
</template>
|
||||||
<template #not-found>
|
<template #not-found>
|
||||||
<h1>404 - Not Found</h1>
|
<h1>404 - Not Found</h1>
|
||||||
|
<p>
|
||||||
|
Thanks for dropping by! But the page you're looking for can't be
|
||||||
|
found.
|
||||||
|
</p>
|
||||||
</template>
|
</template>
|
||||||
</ContentRenderer>
|
</ContentRenderer>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user