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!
I've created a shortcode for #GoHugoIo (a static site generator) that lets me embed Toots on my blog posts!
https://realmenweardress.es/2022/11/2022-11-30-s3-hugo-toot-embeds/
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.