Skip to main content
stuff&things stuff&things

O(M)G Images

Note

02/13/2025
I no longer use this method but, rather, have used this helpful article instead.

This was a tricky one. A few days ago I started working on opengraph images for my website. I hit a snag and after a quick post on the 11ty Discord channel, it was resolved. I wasn’t passing the absolute URL for my site to it and, at the time, I was just using a static image for all posts.

Fast forward a day and I wanted to automate it. The goal from the beginning was to eventually use the Eleventy Plugin Og Image. I had read a few posts, including Robb Knight’s on the matter and figured I’d spin it up quickly. I wasn’t quite yet interested in caching because a lengthier build time isn’t a deal-breaker for me at the moment. I can push the changes and let Cloudflare do its thing and move on. (Right now build time is about 10 minutes. I will eventually work on caching this but that’s for another day. Maybe today, who knows.)