The Problem

Embed Mastodon posts (toots) into Hugo content for context.

The Solution

Bryce Wray provides the code. But this didn’t look right on my PaperMod theme. So I tried something different.

Put this into layouts/shortcodes/toot.html:

View gist: toot.html shortcode

And invoke like this:

View gist: usage example

The Example

[Source not online at time of site build.]