Blogs

The year is...

site features

The year is 2025, according to the year shortcode I copied from the Hugo documentation. I hope this helps any time travelers who stumble across my site!

UPDATE: To be more precise, this static site was last generated in the year 2025. If I haven’t built my site yet this year, then the year shortcode will not have had a chance to update.

(More...)

Happy Little Trees

images

Painting with Bob Ross! I made some happy little trees.

Nelson’s Bob Ross painting of a snowy path through a wood at sunset.

(More...)

Mastodon shortcode redux

site features

I previously installed a Mastodon embed shortcode for Hugo. However, it stopped working when Hugo 0.60.0 was released because Hugo switched to using the Goldmark Markdown parser, which is more strict. In particular, it refuses to process raw HTML by default.

Fortunately, there are a couple of workarounds: either set your site to be “unsafe”, or for some reason you can also simply change from invoking your shortcode with {{% (as instructed by the person who originally wrote the Mastodon shortcode) to using the {{< delimiter, as Bep himself recommended. I don’t really understand why it works when you replace a % with <, but whatever gets the job done. (Update: apparently % causes the contents to be sent through Hugo’s content renderer, while < does not.)

(More...)

"Hugo New" button

I actually forgot about the “Hugo New” button from the discontinued Caddy Hugo plugin (which is still installed on my server), I was copying and pasting metadata from old files. This is nice because it creates a new e.g. blog post with the metadata pre-populated.

To be fair to me, there are problems with it. For instance, it doesn’t respect the directory you’re browsing, if you navigate into content/note/ and hit “Hugo New”, it creates the new file in “content”, which means it will never show up as a blog post since it’s in the wrong directory. So for the filename you have to write something like note/whatever.md which will put it in the right directory. That’s pretty counterintuitive!

(More...)

How does posting work?

testing

This may or may not be a post.

I may or may not have edited this post.

(More...)

This site now supports Mastodon shortcodes

site features

I have installed a Mastodon embed shortcode for Hugo. You can see an example below:

(More...)