After a bit of work with Hugo’s templating functions, namely the exceedingly useful
getJSON I can now embed Mastodon posts directly in my page!
If you’ve looked at this before you might be thinking “Gee, this is easy, you just use the Oembed API”. Well, I didn’t want to use that so this does it properly, with building actual content out of JSON responses. It does mean I’m in way more control of the behaviour.