I have a site about tiny plastic robots. It went through a couple of incarnations, at some points being powered by Hugo. I switched away from it, in favour of a homegrown site generator, after I got annoyed by fighting Hugo’s idea about content organisation and golang’s template language. I’ve found Zola recently and started to wonder whether it’d be useful for me.
The content on my site is primarily photos. They’re grouped per subject (model kit). Within a kit, there’ll be dated entries with photos. Here’s an example:
This is what makes the organisation of the input for a static generator difficult; I need to be able to slice my data two ways:
- for website itself, I need to have per-kit pages - eg.
- for RSS or general social-media links, I need to have per-date links, like these:
If I use one page per date (eg.
/hg/turn-a/2015-05-14.md), sorting the kits within a “category” (
/hg) is non-trivial. If I use one page per kit (eg.
/hg/turn-a.md), generating a chronological list of entries across all pages is non-trivial.
Or at least, it was in Hugo. Have anyone here bumped into a “two-axis” problem like that and can tell me what their experience was with Zola and this kind of layout?
The other half of Hugo’s annoyances were templates. Golang’s templates are… something special on their own.
Thanks for any insight!