3 ms·
Anyone find a way to Group Series of Posts in Hugo? I would like to do this on my homepage instead of just having all posts without differentiation
by burgerquizz 2y ago
Anyone find a way to Group Series of Posts in Hugo? I would like to do this on my homepage instead of just having all posts without differentiation
- danilafe 2y agoTaxonomies[0] are the way to go if you'd like to group content on your site by something like series (although you could "just" use tags, which Hugo enables out of the box). I use "series" as a taxonomy, for which an initial bit of code is here[1]. Given that, depending on how comfortable you are with Hugo templating, you could probably use `.Site.Taxonomies.series` to iterate over all the "series". [0] https://gohugo.io/content-management/taxonomies/ https://gohugo.io/content-management/taxonomies/ [1] https://dev.danilafe.com/Web-Projects/blog-static/src/commit/b3db25c4707a9fd2038bd4cefa3ba41aebb2df91/config.toml#L11-L13 https://dev.danilafe.com/Web-Projects/blog-static/src/commit...