But, when I visit /news/news-test I see [World News Technology] as a solid link, and when I click the link I am taken to /news. However if I just have "World News" on it’s own, it works?!
I’m afraid that I cannot look into your project at the moment, but I think that you may find this topic helpful (particularly the 3 last posts) since you are trying to Nest a Taxonomy under a Section.
There are 2 different techniques described in the above topic about Nested Taxonomies and a link to a sample repository.
thank you @Leo_Merkel and @alexandros I thought it would be a “simple” way of having multiple taxonomies per post, I will read into your repo, thanks again.
Oh, it is absolutely simple. It get’s a bit more complicated when you work with nested sections. Tipp: Before you start digging into those nested sections try to get it running with a normal hugo installation and work from there.
Yep that’s what I would like to have… Ok so if I wanted to have say 10 taxonomies terms for News, I would have to define all of the [permalinks] once really in the config and then add it to the front matter. However if I have say 200 posts and add a new taxonomy term, then I would have to edit 200 posts which is the downside of that :-/
If the project you’re working on is so huge then I think that you would need to go with the default Hugo tags and categories as documented in the Docs and then maybe use some kind of URL rewrite on your server to have them under /news/
I am afraid that I cannot help with URL rewriting on a server though.
It is very much possible to have a Nested Hugo Taxonomy under a Section with Multiple Terms.
Sorry for saying that this is not possible above. I should have spoken after taking your repo for a spin.
P.S. I renamed your topic to something more informative.
@kaushalmodi
I am working on a PR for the Hugo Docs about Nested Taxonomies.
This is an undocumented feature that has been available since Hugo 0.31
See the relevant commit here
The use case of this feature is described in this thread i.e. a Nested Taxonomy under a Section with multiple Taxonomy Terms and also in this topic about Chronological Blog Archives.
Once I’m ready I will send it for review.
P.S. I started working on this a few days ago but got sidetracked.
@alexandros sorry just came back to the office and saw your PR, tested it out and bingo!.. THANK YOU so much for this :)))))))))!!! Amazing work, I am so happy I can get it to work this way and not having to add all of the permalinks by hand each time. I knew there was an easier way since Hugo is so advanced in its features!