Repository navigation
Commit 6db5a64
Fix og:image pointing at a non-existent file on pages with
For pages that set `images:` (webinars, events, software, books, SaaS,
People…) head.html emitted absURL(<bare filename>), e.g.
https://oursqlfoundation.org/banner.jpg. Those files live inside the
page's own bundle, not at the site root, so the share image 404'd on 85
of 327 pages and social platforms showed no preview at all.
Resolve the first `images` entry through the page's resources (same
fingerprinted-permalink path the `image` front matter already used), and
fall back to the default social cover if it can't be resolved instead of
emitting a dead URL. Since logos and photos are not 1200x630, the real
image dimensions are now declared in og:image:width/height, and
twitter:card drops to `summary` for roughly square images (large cards
only for wide ones like the webinar banners).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>images
1 parent 084fb82 commit 6db5a64
1 file changed
Lines changed: 21 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
32 | | - | |
33 | | - | |
34 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
35 | 49 | | |
36 | 50 | | |
37 | 51 | | |
| |||
47 | 61 | | |
48 | 62 | | |
49 | 63 | | |
50 | | - | |
51 | | - | |
| 64 | + | |
| 65 | + | |
52 | 66 | | |
53 | 67 | | |
54 | 68 | | |
| |||
60 | 74 | | |
61 | 75 | | |
62 | 76 | | |
63 | | - | |
| 77 | + | |
64 | 78 | | |
65 | 79 | | |
66 | 80 | | |
| |||
0 commit comments