GitHub gists

You can post short snippets, images, etc. to GitHub gists.

You can even use the gistr package by Scott Chamberlain.

However contrary to dev.to gists are not really, at least in my experience, a platform where people go discover content. Therefore you might want to list gists from somewhere else. A portfolio (so a blog after all, ah! Hugo lets you easily embed gists), a tweet (ephemerous attention).