mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-26 01:40:34 +01:00
docs: improve og image component
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user