Skip to content

Recolor the share card and version its URL - #58

Merged
alies-dev merged 3 commits into
masterfrom
alies-dev/og-colors
Nov 21, 2026
Merged

alies-dev merged 3 commits into
masterfrom
alies-dev/og-colors

Conversation

@alies-dev

@alies-dev alies-dev commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Context

After #57, link previews on X, Slack and Telegram still show the old colours: the "by Psalm" pill is in the old brick red (#a75251) and "stricter" is in the old pink (#e29a98). The image is a static PNG, so changing the CSS tokens didn't update it.

Redrawing the image alone would not reach previews either. og:image pointed at a fixed og.png URL, and link-preview services cache the image by URL, so a new file at the same URL keeps the old card.

Solution

og.png is redrawn with the same layout in the new colours: the pill in #c8102e and "stricter" in the dark-theme red #fd7273.

og:image now gets the ?v=<mtime> suffix that every other asset already has. A changed image gets a new URL, so previews refetch it. The versioned URL also gets the one-year immutable cache from assets/.htaccess, where the bare URL got one day.

The other card tags are unchanged: twitter:card=summary_large_image, plus og:title, og:description, og:url and og:image:alt.

The README now opens with the same image, linked to https://shepherd.dev.

X, Slack and Telegram cache link previews by image URL, so a redrawn
og.png at the same URL kept showing the old card. The ?v=<mtime>
suffix also gets the immutable one-year cache from assets/.htaccess.
@alies-dev alies-dev self-assigned this Nov 21, 2026
@alies-dev
alies-dev merged commit 69c3073 into master Nov 21, 2026
3 checks passed
@alies-dev
alies-dev deleted the alies-dev/og-colors branch November 21, 2026 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant