Skip to content

Commit 5b47f3b

Browse files
committed
chore: add social card
1 parent 67c0d2c commit 5b47f3b

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

app.vue

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ useHead({
2323
2424
useSeoMeta({
2525
ogSiteName: seo?.siteName,
26+
ogImage: 'https://docs-template.nuxt.dev/social-card.png',
27+
twitterImage: 'https://docs-template.nuxt.dev/social-card.png',
2628
twitterCard: 'summary_large_image'
2729
})
2830

pages/index.vue

-6
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@ useSeoMeta({
77
description: page.value.description,
88
ogDescription: page.value.description
99
})
10-
11-
defineOgImage({
12-
component: 'Docs',
13-
title: page.value.title,
14-
description: page.value.description
15-
})
1610
</script>
1711

1812
<template>

public/social-card.png

561 KB
Loading

0 commit comments

Comments
 (0)