mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-23 16:30:45 +01:00
docs: og image for components (#3414)
This commit is contained in:
@@ -72,9 +72,20 @@ useSeoMeta({
|
||||
ogDescription: page.value.description
|
||||
})
|
||||
|
||||
defineOgImageComponent('Docs', {
|
||||
headline: breadcrumb.value.map(item => item.label).join(' > ')
|
||||
})
|
||||
if (route.path.startsWith('/components')) {
|
||||
defineOgImageComponent('OgImageComponent', {
|
||||
title: page.value.title,
|
||||
description: page.value.description,
|
||||
component: (route.params.slug as string[]).pop() as string,
|
||||
module: page.value.module
|
||||
})
|
||||
} else {
|
||||
defineOgImageComponent('Docs', {
|
||||
headline: breadcrumb.value?.[breadcrumb.value.length - 1]?.label || 'Nuxt UI',
|
||||
framework: page.value?.framework,
|
||||
module: page.value.module
|
||||
})
|
||||
}
|
||||
|
||||
const communityLinks = computed(() => [{
|
||||
icon: 'i-lucide-file-pen',
|
||||
|
||||
Reference in New Issue
Block a user