Skip to content

feat(site): add a social preview image and structured data - #198

Merged
ryanlewis merged 1 commit into
mainfrom
site/og-image
Sep 5, 2026
Merged

ryanlewis merged 1 commit into
mainfrom
site/og-image

Conversation

@ryanlewis

Copy link
Copy Markdown
Owner

Sharing a link to the site currently shows a text-only card. This adds a 1200x630 social image and the tags that go with it.

  • scripts/og/generate.py renders the image with Pillow from the site's own fonts (fetched from a pinned google/fonts commit into a cache) and colours. Run it again when the headline changes; the output is committed at docs/static/img/og.png.
  • Every page gets og:image, twitter:card=summary_large_image and the matching Twitter tags.
  • The home page Open Graph title becomes "things-cli: Things 3 from your terminal, or from your agent" instead of the bare site name, and the meta description matches the landing copy.
  • A small SoftwareApplication JSON-LD block on the home page, with the version taken from the same param the hero badge uses.

Checked with a production build: the tags render on all six pages, the JSON-LD parses, and re-running the generator from a clean font cache reproduces the committed PNG byte for byte.

Adds a 1200x630 Open Graph image rendered by scripts/og/generate.py from
the site's own fonts and colours, and references it from every page with
summary_large_image cards. The home page Open Graph title now carries the
headline instead of the bare site name, the meta description matches the
landing copy, and a small SoftwareApplication JSON-LD block describes the
project.
@ryanlewis
ryanlewis merged commit 45af1e4 into main Sep 5, 2026
10 checks passed
@ryanlewis
ryanlewis deleted the site/og-image branch September 5, 2026 18:52
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