Files
ui/docs/app/pages/pro/terms.vue
Sébastien Chopin ba3ed86ae1 docs: add marketing pages (#3308)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2025-02-14 14:18:14 +01:00

32 lines
760 B
Vue

<script setup lang="ts">
const { data: page } = await useAsyncData('terms', () => queryCollection('content').path('/pro/terms').first())
if (!page.value) {
throw createError({ statusCode: 404, statusMessage: 'Page not found', fatal: true })
}
const title = page.value.title
const description = page.value.description
useSeoMeta({
title,
description,
ogTitle: `${title} - Nuxt UI Pro`,
ogDescription: description
})
defineOgImageComponent('Docs', {
headline: 'Pro'
})
</script>
<template>
<UContainer>
<UPage v-if="page">
<UPageHeader :title="page.title" :description="page.description" />
<UPageBody prose>
<ContentRenderer v-if="page.body" :value="page" />
</UPageBody>
</UPage>
</UContainer>
</template>