mirror of
https://github.com/ArthurDanjou/artsite.git
synced 2026-02-03 07:31:45 +01:00
Fix main page
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user