Hugo: List pages not added to taxonomies

Created on 9 Dec 2019  路  4Comments  路  Source: gohugoio/hugo

What version of Hugo are you using (hugo version)?

v0.60.1-96066756 windows/amd64 BuildDate: 2019-11-29T14:57:23Z

Does this issue reproduce with the latest release?

Yes

Problem Description

List pages (_index.md) that have been added to taxonomies are not appearing in the resulting taxonomy term pages. Additionally if such list pages are the only pages in a taxonomy, the taxonomy term page is not generated at all. According to the documentation:

Once a taxonomy is defined at the site level, any piece of content can be assigned to it, __regardless of content type or content section__.

This issue as been reported by three people in this thread and this thread

I've attached a zip archive of a barebones project that replicates the problem. However here are the key parts:

Post (single page) tagged with both _PostOnlyTag_ and _ListAndPostTag_.

title: "My First Post"
date: 2019-12-09T09:24:26-06:00
tags: ["PostOnlyTag", "ListAndPostTag"]
---

My first post

List page tagged with both _ListTag_ and _ListAndPostTag_.

title: "Post List"
tags: ["ListTag", "ListAndPostTag"]
---

Screenshot of the file hierarchy:
Screenshot_239

Screenshot of http://localhost:1313/tags/ missing _ListTag_ and the post list page under the _ListAndPostTag_.
Screenshot_240

Enhancement

Most helpful comment

I'm affected by this as well. A quick git bisect shows that the change in behaviour has been introduced with commit 7ff0a8ee9fe8d710d407e57faf1fda43bd635f28.

@bep: Is this intended?

All 4 comments

This is biting me as well. Any idea if this is a feature regression? Should I expect this to work?

It has now also been reported in this thread. This issue impacts me significantly. @bep any word on whether this is a bug or by design?

I'm affected by this as well. A quick git bisect shows that the change in behaviour has been introduced with commit 7ff0a8ee9fe8d710d407e57faf1fda43bd635f28.

@bep: Is this intended?

@rkunze nice sleuthing!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

geddski picture geddski  路  3Comments

MunifTanjim picture MunifTanjim  路  3Comments

antifuchs picture antifuchs  路  3Comments

sigma picture sigma  路  3Comments

arikroc picture arikroc  路  3Comments