Site Features
The year is...
site featuresThe 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.
Mastodon shortcode redux
site featuresI 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.)
This site now supports Mastodon shortcodes
site featuresI have installed a Mastodon embed shortcode for Hugo. You can see an example below: