diff --git a/docs/components/LogoGreen.vue b/docs/components/LogoGreen.vue deleted file mode 100644 index 3929b74497..0000000000 --- a/docs/components/LogoGreen.vue +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/docs/components/LogoLabs.vue b/docs/components/LogoLabs.vue deleted file mode 100644 index 59615908ec..0000000000 --- a/docs/components/LogoLabs.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - diff --git a/docs/components/OgImage/OgImageDocs.vue b/docs/components/OgImage/OgImageDocs.vue index cb5eb98ff3..151d684fca 100644 --- a/docs/components/OgImage/OgImageDocs.vue +++ b/docs/components/OgImage/OgImageDocs.vue @@ -11,23 +11,180 @@ defineProps({ description: { type: String, required: true + }, + headline: { + type: String, + default: '' } }) - - - - - {{ title }} + + + + + + + + + + + + + + + + + {{ headline }} + + + {{ title }} - - {{ description }} + + {{ description.slice(0, 200) }} - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/pages/[...slug].vue b/docs/pages/[...slug].vue index ffd249dfbb..133bee8285 100644 --- a/docs/pages/[...slug].vue +++ b/docs/pages/[...slug].vue @@ -54,6 +54,8 @@ const { data: surround } = await useAsyncData(`${route.path}-surround`, () => { .findSurround(withoutTrailingSlash(route.path)) }) +const headline = computed(() => findPageHeadline(page.value)) + useSeoMeta({ titleTemplate: '%s - Nuxt UI', title: page.value.title, @@ -65,11 +67,10 @@ useSeoMeta({ defineOgImage({ component: 'Docs', title: page.value.title, - description: page.value.description + description: page.value.description, + headline: headline.value }) -const headline = computed(() => findPageHeadline(page.value)) - const links = computed(() => [{ icon: 'i-heroicons-pencil-square', label: 'Edit this page',
+ {{ headline }} +
- {{ description }} +
+ {{ description.slice(0, 200) }}