generated from pascalmartineau/wp-skeleton
refactor: nodes props
All checks were successful
Deploy WordPress and Nuxt / deploy (push) Successful in 59s
All checks were successful
Deploy WordPress and Nuxt / deploy (push) Successful in 59s
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
@@ -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>
|
||||||
@@ -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>
|
||||||
Reference in New Issue
Block a user