chore: basic @nuxt/content setup

This commit is contained in:
2025-12-01 18:09:58 +01:00
parent 8f94f9ff48
commit 0fb8ecf4c6
7 changed files with 2013 additions and 62 deletions

View File

@@ -1,6 +1,5 @@
<template>
<div>
<NuxtRouteAnnouncer />
<NuxtWelcome />
</div>
</template>
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
</template>

13
app/pages/index.vue Normal file
View File

@@ -0,0 +1,13 @@
<script setup lang="ts">
const { data: home } = await useAsyncData(() => queryCollection('content').path('/').first())
useSeoMeta({
title: home.value?.title,
description: home.value?.description
})
</script>
<template>
<ContentRenderer v-if="home" :value="home" />
<div v-else>Home not found</div>
</template>