Skip to content

Commit

Permalink
add og image to blog
Browse files Browse the repository at this point in the history
  • Loading branch information
brettstack committed Mar 2, 2024
1 parent e2500b4 commit ad850b1
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import prefetch from "@astrojs/prefetch";

import robotsTxt from "astro-robots-txt";

const ogImage = 'https://codegenie.codes/og.jpg'

// https://astro.build/config
export default defineConfig({
site: 'https://codegenie.codes',
Expand Down Expand Up @@ -144,6 +146,20 @@ export default defineConfig({
picture: '/brett-amazon-badge-photo-profile-pic-square-128.webp'
},
},
head: [
{
tag: 'meta',
attrs: { property: 'og:image', content: ogImage },
},
{
tag: 'meta',
attrs: { property: 'twitter:image', content: ogImage },
},
{
tag: 'meta',
attrs: { property: 'twitter:card', content: 'summary_large_image' },
},
],
}),
],
}),
Expand Down

0 comments on commit ad850b1

Please sign in to comment.