I have a hugo
site which uses tags (one form of taxonomy). I have noticed that if I add tags in the frontmatter to index.md
pages, they work as expected, e.g. if I add to the frontmatter:
---
tags: [ "mytag" ]
---
will create a tag which can be accessed at mysite.com/tags/mytag/
. It will also be listed as a tag on mysite.com/tags/
.
However, if I instead add a tag to an _index.md
page, mysite.com/tags/mytag/
is NOT created, and the tag is NOT listed on mysite,com/tags/
.
This is a problem since due to other leaf bundle vs. lists bundle design considerations, my sites content is 100% _index.md
pages and no index.md
pages, hence even though I have 1000’s of tags no tag pages are created. Interestingly, the tags for each page are still listed correctly on each page through the .Params.tags
variable.
I would have expected tags (and other taxonomies) to work on both content created with index.md
and _index.md
pages.
I am running Hugo v0.60.1
.