File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 11---
2- import { generateMetaTags } from ' @/utils/seo' ;
2+ import { generateMetaTags , generateSocialImage } from ' @/utils/seo' ;
33import config from ' @/config' ;
44
55const { frontmatter } = Astro .props ;
66
77const 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' ;
99const path = frontmatter ?.url || ' /' ;
10+ const image = generateSocialImage ({
11+ title: title ,
12+ tagline: description ,
13+ imagePublicID: ' open-source/vee-validate-share.png' ,
14+ });
1015
1116const metaTags = generateMetaTags ({
1217 title ,
1318 description ,
1419 url: ` ${config .appURL }${path } ` ,
20+ image ,
1521});
1622---
1723
Original file line number Diff line number Diff line change 11---
22layout : ../../layouts/PageLayout.astro
33title : Nuxt integration
4- description : VeeValidate Integration with nuxt
4+ description : VeeValidate Nuxt module
55order : 3
66---
77
You can’t perform that action at this time.
0 commit comments