But when I add tags to an “_index.md” file, the pages do not appear in the taxonomy list. For example the “_index.md” under the folder “heydon” has this in its front matter:
Off the top of my head I’m not sure it is supported. Assuming it is, the place I’d check is my taxonomy template, where I’m calling content. It is a common default for themes to limit their various list templates to regular content pages.
I think I’ve just run into the same issue. A site that built successfully in earlier versions of Hugo (some time before 0.57, I think) has just stopped working. The site contains ‘_index.md’ files with taxonomy declarations in the front-matter; those taxonomies don’t appear in the taxonomy list for the site. However, if I change the filename to ‘index.md’, they do (but then other stuff gets messed up).
As @vdadfar observes, other people have run into this same issue as well. However, I haven’t seen any word from the Hugo gods (Hugods?) on how we’re supposed to handle this. It seems that Branch Bundle pages (indexes) could once have taxonomies and now they can’t. I don’t know if this is a regression, or policy.
Because this has now been report by three people (myself, @angusm, and @vdadfar) I opened an issue on Github that has a barebones project that replicates the issue.
Thanks, I was caught by this also and I thought I was going mad! The workaround of renaming from _index.html to index.html works in my case but it would be great to see this fixed.
Unfortunately that solution doesn’t work in all scenarios as renaming to index.html loses the section status and thus you can’t (as easily) comb through all pages in a given “section”
I’m definitely hoping for a solution to this. I’m creating an ‘about’ page in each section (with a blank _index.md page). It’s more complicated and makes linking more difficult.