Files
cultureat-bak/wp-content/themes/ccat/app/components/nodes/ThePage.vue

17 lines
421 B
Vue

<script setup lang="ts">
import type { ThePageFragment } from "#graphql-operations";
const props = defineProps<ThePageFragment>();
if (props.template?.__typename === "Template_VirtualPage") {
useRobotsRule({ noindex: true });
await navigateTo(props.children?.nodes[0]?.uri || "/");
}
useSeoMeta({ title: props.title });
</script>
<template>
<TheSections :sections="groupPostPage?.sections || []" />
</template>