docs: og image for components (#3414)

This commit is contained in:
Sébastien Chopin
2025-02-27 23:38:57 +01:00
committed by GitHub
parent dbc85b6149
commit 41397ca8bb
11 changed files with 120 additions and 192 deletions

View File

@@ -1,4 +1,8 @@
<script setup lang="ts">
import { joinURL } from 'ufo'
const { url } = useSiteConfig()
const title = 'Vue Components'
const description = 'Explore 99+ customizable UI components for Vue and Nuxt built with Tailwind CSS and Reka UI.'
@@ -7,11 +11,8 @@ useSeoMeta({
title,
description,
ogTitle: `${title} - Nuxt UI`,
ogDescription: description
})
defineOgImageComponent('Docs', {
headline: 'Documentation'
ogDescription: description,
ogImage: joinURL(url, '/og-image.png')
})
const { data: components } = await useAsyncData('components', () => {