switch to nuxt

This commit is contained in:
2026-02-13 19:26:38 +03:00
parent 9e30ee63b3
commit f5b2f7a867
39 changed files with 11457 additions and 3349 deletions
+22
View File
@@ -0,0 +1,22 @@
<script setup lang="ts">
const route = useRoute();
const { data: page } = await useAsyncData("page-" + route.path, () => {
return queryCollection("content").path(route.path).first();
});
if (!page.value) {
throw createError({
statusCode: 404,
statusMessage: "Page not found",
fatal: true,
});
}
</script>
<template>
<ContentRenderer
v-if="page"
:value="page"
/>
</template>