How to add JSON Feed support to Hugo

In order to add JSON Feed 1.1 support to Hugo you need to first add a new jsonfeed output format in config.yaml: mediaTypes: application/feed+json: suffixes: - json outputFormats: jsonfeed: mediaType: application/feed+json baseName: feed rel: alternate isPlainText: true This adds a new media type application/feed+json with the extension json and creates a new output format jsonfeed rendering into that media type with a base name of feed (so feed.json as recommended by the JSON Feed spec)....

January 29, 2023 · 3 min
A smartphone lying on a table, showing Markor in editing mode on the Markdown of this blog post.

Hugo, meet Android

One thing that kept me from blogging more so far was the difficulty in working on posts on my phone. So after switching this blog over to Hugo I decided to see if I couldn’t improve on this situation. I needed a solution that would allow me to Checkout my page’s git repository from GitHub Quickly create a new post, consisting of a new folder inside content/blog matching my chosen <year>-<month>-<day>-<title slug>/index....

January 21, 2023 · 5 min
A picture of a coastline. Blue sky with some clouds, dark blue rippled water, and gras growing on the shore.

Hello Hugo!

Two years ago I was into learning React, since that is what I’m planning to use for a future OctoPrint UI. And when I decided to reboot this webpage, I also figured I would use that as a reason for experimenting with new build tools and techstacks. So I built this site with next.js, Tailwind CSS and a bunch of other stuff, and spent a lot of time implementing basic content management tooling and rendering....

January 20, 2023 · 2 min
Mastodon