Skip to content

Commit

Permalink
add some more conditional global access
Browse files Browse the repository at this point in the history
  • Loading branch information
ComfortablyCoding committed Jul 28, 2024
1 parent c2a938e commit f11c6c0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/navigation/MobileMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ watch(
<NuxtLink href="/">
<Logo class="h-6 dark:text-white" />
</NuxtLink>
<VText v-if="globals.tagline" class="pb-4 mt-2">
<VText v-if="globals?.tagline" class="pb-4 mt-2">
{{ globals.tagline }}
</VText>
</div>
Expand Down
2 changes: 1 addition & 1 deletion components/navigation/TheFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const { data: form } = await useAsyncData(
<NuxtLink href="/">
<Logo class="h-8 dark:text-white" />
</NuxtLink>
<VText v-if="globals.tagline" text-color="light" class="mt-2">
<VText v-if="globals?.tagline" text-color="light" class="mt-2">
{{ globals.tagline }}
</VText>
</div>
Expand Down
2 changes: 1 addition & 1 deletion pages/[...permalink].vue
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ const metadata = computed(() => {
return {
title: pageData?.seo?.title ?? pageData?.title ?? undefined,
description: pageData?.seo?.meta_description ?? pageData?.summary ?? undefined,
image: globals.og_image ? fileUrl(globals.og_image) : undefined,
image: globals?.og_image ? fileUrl(globals.og_image) : undefined,
canonical: pageData?.seo?.canonical_url ?? url,
};
});
Expand Down

0 comments on commit f11c6c0

Please sign in to comment.