There's a new taxonomy for posts that are written in a particular order!
I want to more clearly show relations between some of my posts. Tags and
categories do handle a lot, but they get a bit clunky with stuff like my
Taskwarrior posts, which specifically build on each
Hugo supports series as a
taxonomy. Let’s find
out what that means.
Update site config
Even though Hugo pays attention to series for internal templates, it
doesn’t count it towards taxonomies. So let’s add an entry for it in
Now every post can be associated with zero or more series, and Hugo will
Update front matter
Add a series array with one entry for all of the Taskwarrior posts so
far (but not this one, since it isn’t part of the series).
Create a series summary page
Oh look, there it is, already sitting at /series, thanks to
my existing layouts/_default/terms.html.
Almost perfect. But since each post is supposed to build on the
others, I’d prefer the listing present its posts in chronological order.
I’ll add a template for series listings.
And while I’m at it, how about an introduction to the series?
That works for now. I can tighten it up later.
Link back to the series summary in every series post
Next I want posts to link back to their series main page. I already have
a partial for content metadata so I can add it there.
Then I thought to myself “Oh I know. I’ll add links to the previous and
next posts in the series. Shouldn’t be too hard, right?”
Famous last words. After floundering for a bit, I ended up grabbing a
from the Hugo community forums and adjusting it for my tastes.
This is a mess. But hey it works!
That’s pretty much it! Now it’ll be easier for visitors to understand
when posts build on each other. At some point I will dig through the
rest of my posts to add series-related front matter when applicable. Not