refactor: nodes props
All checks were successful
Deploy WordPress and Nuxt / deploy (push) Successful in 59s

This commit is contained in:
2025-09-24 15:23:34 -04:00
parent 5f2c464c9a
commit 5c49583287
6 changed files with 21 additions and 15 deletions

View File

@@ -1,11 +1,12 @@
<script setup lang="ts"> <script setup lang="ts">
import type { TheArticleFragment } from "#graphql-operations"; import type { TheArticleFragment } from "#graphql-operations";
defineProps<{ node: TheArticleFragment }>(); const props = defineProps<TheArticleFragment>();
useSeoMeta({ title: props.title });
</script> </script>
<template> <template>
<UPage> <UPage>
<UPageSection v-if="node.title" :title="node.title" /> <UPageSection v-if="title" :title="title" />
</UPage> </UPage>
</template> </template>

View File

@@ -1,11 +1,12 @@
<script setup lang="ts"> <script setup lang="ts">
import type { TheEventFragment } from "#graphql-operations"; import type { TheEventFragment } from "#graphql-operations";
defineProps<{ node: TheEventFragment }>(); const props = defineProps<TheEventFragment>();
useSeoMeta({ title: props.title });
</script> </script>
<template> <template>
<UPage> <UPage>
<UPageSection v-if="node.title" :title="node.title" /> <UPageSection v-if="title" :title="title" />
</UPage> </UPage>
</template> </template>

View File

@@ -1,11 +1,12 @@
<script setup lang="ts"> <script setup lang="ts">
import type { TheLocationFragment } from "#graphql-operations"; import type { TheLocationFragment } from "#graphql-operations";
defineProps<{ node: TheLocationFragment }>(); const props = defineProps<TheLocationFragment>();
useSeoMeta({ title: props.title });
</script> </script>
<template> <template>
<UPage> <UPage>
<UPageSection v-if="node.title" :title="node.title" /> <UPageSection v-if="title" :title="title" />
</UPage> </UPage>
</template> </template>

View File

@@ -1,11 +1,12 @@
<script setup lang="ts"> <script setup lang="ts">
import type { TheMembershipFragment } from "#graphql-operations"; import type { TheMembershipFragment } from "#graphql-operations";
defineProps<{ node: TheMembershipFragment }>(); const props = defineProps<TheMembershipFragment>();
useSeoMeta({ title: props.title });
</script> </script>
<template> <template>
<UPage> <UPage>
<UPageSection v-if="node.title" :title="node.title" /> <UPageSection v-if="title" :title="title" />
</UPage> </UPage>
</template> </template>

View File

@@ -1,11 +1,12 @@
<script setup lang="ts"> <script setup lang="ts">
import type { TheProjectFragment } from "#graphql-operations"; import type { TheProjectFragment } from "#graphql-operations";
defineProps<{ node: TheProjectFragment }>(); const props = defineProps<TheProjectFragment>();
useSeoMeta({ title: props.title });
</script> </script>
<template> <template>
<UPage> <UPage>
<UPageSection v-if="node.title" :title="node.title" /> <UPageSection v-if="title" :title="title" />
</UPage> </UPage>
</template> </template>

View File

@@ -1,11 +1,12 @@
<script setup lang="ts"> <script setup lang="ts">
import type { TheResourceFragment } from "#graphql-operations"; import type { TheResourceFragment } from "#graphql-operations";
defineProps<{ node: TheResourceFragment }>(); const props = defineProps<TheResourceFragment>();
useSeoMeta({ title: props.title });
</script> </script>
<template> <template>
<UPage> <UPage>
<UPageSection v-if="node.title" :title="node.title" /> <UPageSection v-if="title" :title="title" />
</UPage> </UPage>
</template> </template>