I have a whole lot of articles on my page, sorted with different tags. I’d like to be able to assign those tags to a meta-tag or a category, so that I could range .Site.Taxonomies by tag category.
For example, if we imagine I’m making a website with different musical albums, I’d add a tag for every genre, but there’d also be a meta-tag for categorizing genres, for example “Rock” which could include both “Metal” and “Boogie Woogie” in it.
I don’t mind defining all that in the config.toml-file, if that was an option. Any ideas to how that could be accomplished?
+++
title = "Post 2"
date = 2020-12-21T11:29:44-05:00
draft = false
tags = ["Rock/Metal"]
+++
Here’s a working example:
git clone --single-branch -b hugo-forum-topic-30136 https://github.com/jmooring/hugo-testing hugo-forum-topic-30136
cd hugo-forum-topic-30136
hugo server
Yes that works. I am already using it. However content published under /rock/metal/ will be of the tags Type and it will exist side by side to content that will be published in the Rock Type under /rock/.
There are no hierarchies. One cannot use a straightforward method to range through .Site.Taxonomies and output for example a tree of Taxonomy links along with their “children”, like:
Rock
Metal
Boogie Woogie
Jazz
Acid jazz
Swing
Currently I am doing the above in a project of mine by manipulating the value of tags = ["Rock/Metal"] to generate the link to the “parent”.