· javascript

Open Graph images with Astro and Typst

Links to blog articles look better when they’re accompanied by an image.


If the HTML head has a meta tag like this, it will happen automatically: My previous, tedious workflow for these kinds of images was to go to unspash.com, search for something like structure or archive, and then select an image I thought would fit the theme of the post. Being both boring and error-prone, I abandonded that process and set up a pipeline that generates image cards at build-time instead.

They look like this: Typst is a tool that generates high-quality documents from a simple markup language. A lovechild of LaTeX and Markdown, it works great for math whilst also keeping the day-to-day text formatting syntax bearable.

Related coverage

Also worth reading

  1. angular 22.3.0-rc.0 released
  2. node 26.13.1 released
  3. next.js 16.5.0-canary.47 released
  4. CPython 3.16.0a2 released for developers
  5. One Identity Unveils Identity Manager 10.0 LTS with AI and Modern UX