Skip to content

Commit

Permalink
docs: fix page render
Browse files Browse the repository at this point in the history
  • Loading branch information
Baroshem committed Jun 13, 2024
1 parent 34d014b commit 6e7593a
Show file tree
Hide file tree
Showing 3 changed files with 889 additions and 3,209 deletions.
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@iconify-json/simple-icons": "^1.1.87",
"@nuxt/content": "^2.10.0",
"@nuxt/devtools": "1.0.5",
"@nuxt/ui-pro": "^0.6.1",
"@nuxt/ui-pro": "^1.3.0",
"nuxt": "^3.12.1",
"typescript": "^5.4.5"
},
Expand Down
22 changes: 11 additions & 11 deletions docs/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ const { data: code } = await useAsyncData('code', () =>
)
useSeoMeta({
title: page.value.title,
ogTitle: page.value.title,
description: page.value.description,
ogDescription: page.value.description,
ogImage: page.value.cover,
twitterImage: page.value.cover,
title: page.value?.title,
ogTitle: page.value?.title,
description: page.value?.description,
ogDescription: page.value?.description,
ogImage: page.value?.cover,
twitterImage: page.value?.cover,
})
</script>

Expand All @@ -34,18 +34,18 @@ useSeoMeta({
</div>
<template #title>
<!-- eslint-disable vue/no-v-html -->
<span v-html="page.hero?.title" />
<span v-html="page?.hero?.title" />
</template>
<template #description>
{{ page.hero?.description }}
{{ page?.hero?.description }}
</template>
<template #links>
<UButton
to="/getting-started"
icon="i-ph-rocket-launch-duotone"
size="xl"
>
{{ page.hero?.button }}
{{ page?.hero?.button }}
</UButton>
<UButton
size="xl"
Expand Down Expand Up @@ -75,12 +75,12 @@ useSeoMeta({
</ULandingHero>
<ULandingSection
:title="page.features.title"
:title="page?.features.title"
style="padding-top: 0px"
>
<UPageGrid>
<ULandingCard
v-for="(item, index) of page.features.items"
v-for="(item, index) of page?.features.items"
:key="index"
v-bind="item"
/>
Expand Down
Loading

0 comments on commit 6e7593a

Please sign in to comment.