Repository navigation
Commit c010c1a
authored
feat: add a social card for the site root (#165)
* feat: add a social card for the site root
Starlight already emits `twitter:card: summary_large_image` on every page,
but nothing ever set `og:image`, so sharing the root anywhere - Slack,
Discord, X, LinkedIn - produced a bare text link with no card at all.
Add a 1200x630 card built from the frontpage's own vocabulary: the cream
paper background, the wordmark, the hero headline in the display serif,
and the three supported platforms. It carries no distro name and no
version, so a new release never leaves it stale, and no URL, since the
site may not always live at robostack.github.io.
The card is rendered by hand rather than at build time, which would mean
pulling in a renderer just for one static image. scripts/og-image.html is
the source and its header comment carries the render command.
The tags land on the root page only; Starlight already emits the title,
description and URL, so only the image, its dimensions and its alt text
are missing.
* feat: put the social card as a global property (every page)1 parent 71a1ba7 commit c010c1a
2 files changed
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
7 | | - | |
| 10 | + | |
8 | 11 | | |
9 | 12 | | |
10 | 13 | | |
| |||
22 | 25 | | |
23 | 26 | | |
24 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
25 | 39 | | |
26 | 40 | | |
27 | 41 | | |
| |||
Loading
0 commit comments