Skip to content

Commit 0415906

Browse files
committed
docs: share image
1 parent 6325109 commit 0415906

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

docs/src/components/SiteHead.astro

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,23 @@
11
---
2-
import { generateMetaTags } from '@/utils/seo';
2+
import { generateMetaTags, generateSocialImage } from '@/utils/seo';
33
import config from '@/config';
44
55
const { frontmatter } = Astro.props;
66
77
const title = frontmatter?.title || 'VeeValidate: Painless Vue.js forms';
8-
const description = frontmatter?.title || 'Painless Vue.js forms';
8+
const description = frontmatter?.description || 'Painless Vue.js forms';
99
const path = frontmatter?.url || '/';
10+
const image = generateSocialImage({
11+
title: title,
12+
tagline: description,
13+
imagePublicID: 'open-source/vee-validate-share.png',
14+
});
1015
1116
const metaTags = generateMetaTags({
1217
title,
1318
description,
1419
url: `${config.appURL}${path}`,
20+
image,
1521
});
1622
---
1723

docs/src/pages/integrations/nuxt.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: ../../layouts/PageLayout.astro
33
title: Nuxt integration
4-
description: VeeValidate Integration with nuxt
4+
description: VeeValidate Nuxt module
55
order: 3
66
---
77

0 commit comments

Comments
 (0)