mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-25 17:30:37 +01:00
docs: fix seo on templates page
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
title: Official Nuxt UI [Pro]{.text-(--ui-primary)} Templates
|
title: Official Nuxt UI Pro Templates
|
||||||
description: 'Ready to use templates powered by our premium Vue components and Nuxt Content.<br class="hidden lg:block"> The templates are responsive, accessible and easy to customize so you can get started in no time.'
|
description: 'Ready to use templates powered by our premium Vue components and Nuxt Content. The templates are responsive, accessible and easy to customize so you can get started in no time.'
|
||||||
head.title: Templates
|
hero:
|
||||||
head.description: 'Ready to use templates powered by our premium Vue components and Nuxt Content. The templates are responsive, accessible and easy to customize so you can get started in no time.'
|
title: Official Nuxt UI [Pro]{.text-(--ui-primary)} Templates
|
||||||
|
description: 'Ready to use templates powered by our premium Vue components and Nuxt Content.<br class="hidden lg:block"> The templates are responsive, accessible and easy to customize so you can get started in no time.'
|
||||||
navigation: false
|
navigation: false
|
||||||
links:
|
links:
|
||||||
- label: Get started
|
- label: Get started
|
||||||
|
|||||||
@@ -2,13 +2,11 @@
|
|||||||
// @ts-expect-error yaml is not typed
|
// @ts-expect-error yaml is not typed
|
||||||
import page from '.content/templates.yml'
|
import page from '.content/templates.yml'
|
||||||
|
|
||||||
const title = page.head?.title || page.title
|
|
||||||
const description = page.head?.description || page.description
|
|
||||||
useSeoMeta({
|
useSeoMeta({
|
||||||
title,
|
title: page.title,
|
||||||
description,
|
description: page.description,
|
||||||
ogTitle: `${title} - Nuxt UI Pro`,
|
ogTitle: page.title,
|
||||||
ogDescription: description
|
ogDescription: page.description
|
||||||
})
|
})
|
||||||
defineOgImageComponent('Docs', {
|
defineOgImageComponent('Docs', {
|
||||||
headline: 'Pro'
|
headline: 'Pro'
|
||||||
@@ -25,11 +23,11 @@ defineOgImageComponent('Docs', {
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template #title>
|
<template #title>
|
||||||
<MDC :value="page.title" unwrap="p" />
|
<MDC :value="page.hero.title" unwrap="p" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template #description>
|
<template #description>
|
||||||
<MDC :value="page.description" unwrap="p" />
|
<MDC :value="page.hero.description" unwrap="p" />
|
||||||
</template>
|
</template>
|
||||||
</UPageHero>
|
</UPageHero>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user