Fix main page

This commit is contained in:
2024-11-28 22:55:28 +01:00
parent 2649d0d8ce
commit 75b3655fd3
8 changed files with 7 additions and 36 deletions

View File

@@ -3,12 +3,18 @@ const { locale } = useI18n()
const { data: page } = await useAsyncData(`/home/${locale.value}`, () => {
return queryCollection('main').path(`/home/${locale.value}`).first()
}, {
watch: [locale],
})
</script>
<template>
<main class="!max-w-none prose dark:prose-invert">
<ContentRenderer v-if="page" :value="page" />
<HomeStats />
<HomeActivity />
<HomeQuote />
<HomeCatchPhrase />
<HomeMap />
</main>
</template>