Skip to content

Commit ef4ca24

Browse files
committed
Add og:image and social preview meta to website
- Add 1200x630 social preview image (website/public/og-image.png) - Add og:image, og:image:width/height/alt and twitter:image meta tags Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013sSVPq8jM5vj3VFsnBEGPn
1 parent ce84f04 commit ef4ca24

2 files changed

Lines changed: 36 additions & 0 deletions

File tree

‎website/astro.config.mjs‎

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,42 @@ export default defineConfig({
120120
content: 'light dark',
121121
},
122122
},
123+
{
124+
tag: 'meta',
125+
attrs: {
126+
property: 'og:image',
127+
content: 'https://htmlhint.com/og-image.png',
128+
},
129+
},
130+
{
131+
tag: 'meta',
132+
attrs: {
133+
property: 'og:image:width',
134+
content: '1200',
135+
},
136+
},
137+
{
138+
tag: 'meta',
139+
attrs: {
140+
property: 'og:image:height',
141+
content: '630',
142+
},
143+
},
144+
{
145+
tag: 'meta',
146+
attrs: {
147+
property: 'og:image:alt',
148+
content:
149+
'HTMLHint: The static code analysis tool you need for your HTML',
150+
},
151+
},
152+
{
153+
tag: 'meta',
154+
attrs: {
155+
name: 'twitter:image',
156+
content: 'https://htmlhint.com/og-image.png',
157+
},
158+
},
123159
{
124160
tag: 'meta',
125161
attrs: {

‎website/public/og-image.png‎

32.5 KB
Loading

0 commit comments

Comments
 (0)