Commit 076bf33
authored
feat(landing): ship purpose-built OG card site-wide (#4292)
* feat(landing): ship purpose-built OG card site-wide
Replace the hero-screenshot Open Graph image with a dedicated 1200×630
brand card (light paper, lime highlight, "the official open-source Claude
Design alternative" headline, with Local-first / Apache-2.0 / BYO coding
agent tags). The previous og:image reused hero.png, which crops awkwardly
to 1.91:1 and carries no positioning.
- image-assets.ts: ogDefaultImage now points at the raw R2 object
(landing/assets/og-card.png) instead of the cdn-cgi/image resizer, so
social crawlers always get a real PNG at exactly 1200×630 rather than a
format=auto WebP. Export OG_IMAGE_WIDTH/HEIGHT.
- index.astro: homepage og:image + twitter:image use the card; add
og:image:width/height/type meta.
- og.astro: rewrite the /og/ screenshotable source to match the shipped
card (self-contained, inline brand mark), with regenerate steps.
The static PNG is uploaded to R2 separately; this commit only wires the
references.
* fix(landing): use OG card as sub-page-layout default share image
sub-page-layout.astro powers most non-homepage landing routes (/skills,
/systems, /templates, /solutions, /agents, …). Its og:image fallback
still resolved to the old hero screenshot (heroImage), so those pages
kept unfurling the product shot after the site-wide card landed. Point
the default at ogDefaultImage so the new card is genuinely site-wide;
per-page ogImage overrides are untouched.
---------
Co-authored-by: Joey <276262049+xne998808-ai@users.noreply.github.com>1 parent 4763021 commit 076bf33
4 files changed
Lines changed: 197 additions & 336 deletions
File tree
- apps/landing-page/app
- _components
- pages
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
84 | | - | |
85 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
74 | 80 | | |
75 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
76 | 84 | | |
77 | 85 | | |
78 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
184 | 186 | | |
185 | 187 | | |
186 | 188 | | |
187 | | - | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
188 | 193 | | |
189 | 194 | | |
190 | 195 | | |
| |||
193 | 198 | | |
194 | 199 | | |
195 | 200 | | |
196 | | - | |
| 201 | + | |
197 | 202 | | |
198 | 203 | | |
199 | 204 | | |
| |||
0 commit comments