docs(app): clean seo metas

This commit is contained in:
Benjamin Canac
2025-04-04 23:12:17 +02:00
parent a0c9731f63
commit eeba3b4049
10 changed files with 21 additions and 19 deletions

View File

@@ -1,20 +1,19 @@
<script setup lang="ts">
import { joinURL } from 'ufo'
const { data: page } = await useAsyncData('showcase', () => queryCollection('showcase').first())
if (!page.value) {
throw createError({ statusCode: 404, statusMessage: 'Page not found', fatal: true })
}
const { url } = useSiteConfig()
useSeoMeta({
titleTemplate: `%s - Nuxt UI`,
title: page.value.title,
description: page.value.description,
ogTitle: `${page.value.title} - Nuxt UI`,
ogDescription: page.value.description,
ogImage: joinURL(url, '/og-image.png')
ogDescription: page.value.description
})
defineOgImageComponent('Docs', {
headline: 'Community'
})
</script>