Skip to content

Commit 6e7593a

Browse files
committed
docs: fix page render
1 parent 34d014b commit 6e7593a

File tree

3 files changed

+889
-3209
lines changed

3 files changed

+889
-3209
lines changed

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"@iconify-json/simple-icons": "^1.1.87",
1313
"@nuxt/content": "^2.10.0",
1414
"@nuxt/devtools": "1.0.5",
15-
"@nuxt/ui-pro": "^0.6.1",
15+
"@nuxt/ui-pro": "^1.3.0",
1616
"nuxt": "^3.12.1",
1717
"typescript": "^5.4.5"
1818
},

docs/pages/index.vue

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ const { data: code } = await useAsyncData('code', () =>
1313
)
1414
1515
useSeoMeta({
16-
title: page.value.title,
17-
ogTitle: page.value.title,
18-
description: page.value.description,
19-
ogDescription: page.value.description,
20-
ogImage: page.value.cover,
21-
twitterImage: page.value.cover,
16+
title: page.value?.title,
17+
ogTitle: page.value?.title,
18+
description: page.value?.description,
19+
ogDescription: page.value?.description,
20+
ogImage: page.value?.cover,
21+
twitterImage: page.value?.cover,
2222
})
2323
</script>
2424

@@ -34,18 +34,18 @@ useSeoMeta({
3434
</div>
3535
<template #title>
3636
<!-- eslint-disable vue/no-v-html -->
37-
<span v-html="page.hero?.title" />
37+
<span v-html="page?.hero?.title" />
3838
</template>
3939
<template #description>
40-
{{ page.hero?.description }}
40+
{{ page?.hero?.description }}
4141
</template>
4242
<template #links>
4343
<UButton
4444
to="/getting-started"
4545
icon="i-ph-rocket-launch-duotone"
4646
size="xl"
4747
>
48-
{{ page.hero?.button }}
48+
{{ page?.hero?.button }}
4949
</UButton>
5050
<UButton
5151
size="xl"
@@ -75,12 +75,12 @@ useSeoMeta({
7575
</ULandingHero>
7676

7777
<ULandingSection
78-
:title="page.features.title"
78+
:title="page?.features.title"
7979
style="padding-top: 0px"
8080
>
8181
<UPageGrid>
8282
<ULandingCard
83-
v-for="(item, index) of page.features.items"
83+
v-for="(item, index) of page?.features.items"
8484
:key="index"
8585
v-bind="item"
8686
/>

0 commit comments

Comments
 (0)