@@ -26,13 +26,15 @@ const { data: surround } = await useAsyncData(
2626
2727useSeoMeta ({
2828 titleTemplate: ' %s - Nuxt Cloudinary' ,
29- title: page .value .title ,
30- ogTitle: ` ${page .value .title } - Nuxt Cloudinary ` ,
31- description: page .value .description ,
32- ogDescription: page .value .description ,
29+ title: page .value ? .title ,
30+ ogTitle: ` ${page .value ? .title } - Nuxt Cloudinary ` ,
31+ description: page .value ? .description ,
32+ ogDescription: page .value ? .description ,
3333})
3434
35- const headline = computed (() => findPageHeadline (page .value ))
35+ const headline = computed (() =>
36+ page ?.value ? findPageHeadline (page .value ) : ' Nuxt Cloudinary Headline' ,
37+ )
3638const communityLinks = computed (() => [
3739 {
3840 icon: ' i-ph-pen-duotone' ,
@@ -70,9 +72,9 @@ const communityLinks = computed(() => [
7072<template >
7173 <UPage >
7274 <UPageHeader
73- :title =" page.title"
74- :description =" page.description"
75- :links =" page.links"
75+ :title =" page? .title"
76+ :description =" page? .description"
77+ :links =" page? .links"
7678 :headline =" headline"
7779 />
7880
@@ -81,7 +83,7 @@ const communityLinks = computed(() => [
8183 class =" pb-0"
8284 >
8385 <ContentRenderer
84- v-if =" page.body"
86+ v-if =" page? .body"
8587 :value =" page"
8688 />
8789 <hr
@@ -92,7 +94,7 @@ const communityLinks = computed(() => [
9294 </UPageBody >
9395
9496 <template
95- v-if =" page .body ?.toc ?.links ?.length "
97+ v-if =" page ? .body ?.toc ?.links ?.length "
9698 #right
9799 >
98100 <UDocsToc :links =" page.body.toc.links" >
0 commit comments