Skip to content

Commit d70a33c

Browse files
coliffclaude
andauthored
Add og:image and social preview meta to website (#1950)
Co-authored-by: Claude <noreply@anthropic.com>
1 parent c11ad55 commit d70a33c

3 files changed

Lines changed: 45 additions & 0 deletions

File tree

‎AGENTS.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
## GitHub Commit Messages
4242

4343
- If multiple changes are made then list changes using bullet points.
44+
- Pull requests should contain a single commit. Squash commits before pushing, including fixes for review feedback.
4445

4546
## Documentation
4647

‎website/astro.config.mjs‎

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,50 @@ 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+
},
159+
{
160+
tag: 'meta',
161+
attrs: {
162+
name: 'twitter:image:alt',
163+
content:
164+
'HTMLHint: The static code analysis tool you need for your HTML',
165+
},
166+
},
123167
{
124168
tag: 'meta',
125169
attrs: {

‎website/public/og-image.png‎

32.5 KB
Loading

0 commit comments

Comments
 (0)