Skip to content

Commit

Permalink
chore(site): configure social cards
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieMason committed Nov 12, 2023
1 parent e43b2ad commit e9789e8
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions site/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,50 @@ export default defineConfig({
autogenerate: { directory: 'examples' },
},
],
head: [
{
tag: 'meta',
attrs: {
name: 'twitter:image',
content: '/syncpack/social-card.jpg',
},
},
{
tag: 'meta',
attrs: {
property: 'og:image',
content: '/syncpack/social-card.jpg',
},
},
{
tag: 'meta',
attrs: {
property: 'og:image:width',
content: '1200',
},
},
{
tag: 'meta',
attrs: {
property: 'og:image:height',
content: '675',
},
},
{
tag: 'meta',
attrs: {
name: 'twitter:creator',
content: '@fold_left',
},
},
{
tag: 'meta',
attrs: {
name: 'twitter:site',
content: '@fold_left',
},
},
],
}),
],
});
File renamed without changes

0 comments on commit e9789e8

Please sign in to comment.