Guide

Hugo Open Graph images

Point Hugo’s images / Open Graph partials at a generated PNG URL. For private keys, generate at build time with a CI secret.

# example build-time fetch
curl -G "https://ogstamp.com/api/og" \
  --data-urlencode "title=$TITLE" \
  --data-urlencode "theme=forest" \
  -H "Authorization: Bearer $OGSTAMP_KEY" \
  -o static/og/$SLUG.png

Also see Next.js, Astro, and credits.