Creating archive pages grouped by year in Hugo

15 Nov 2019 - 2 minute read
categories: tutorials tags: hugo blog golang

I was on the hunt to find out how to organize my blog and project archive pages by year in Hugo. After being unable to find any easy solutions I decided I would sit down and write the go template to render these pages myself. The idea was simple, iterate over the list divided by year into sub lists and render tables, but it turned out to be a bit tricky.