Hugo does not consistently compile the following, which I think could be a bug. I’ve compiled a minimal working example on https://github.com/wpk-/hugo-issue.
The example shows a blog with a person/people taxonomy and a posts section. There is one post with two people (Bob and Charles) in its front matter. Bob has a page (branch) bundle in content/people/bob/
, Charles does not but that’s fine. The third person, Anna, has a page (leaf) bundle in content/people/anna/
.
The issue is the URL http://localhost:1313/people/ is inconsistently built by Hugo. Sometimes it lists only Anna and the title is “Peoples” (yuk, where did that come from!?). Other times it lists Bob and Charles but not Anna, and the title is “List of people” as per content/people/_index.md
When I wrote the README.md I thought at least the inconsistency was consistent (to reproduce) but I’ve since figured out it isn’t. Restart Hugo and you get a surprise every time. Touch a random file (to trigger a rebuild) and the page may change, but it doesn’t have to. I have yet to find it changes two times during a single server run, but that’s about the only consistency I found.
The main question is, what is Hugo actually supposed to render there? I don’t know. I had quietly hoped to get all three people…