Missing posts in subdirs with hugo >= 0.57

So, the breaking change was introduced in 0.57, then partly rolled back in 0.57.1… Then introduced again in 0.58.

The short story is:

  • .Pages now works the same on all levels, including the home page. It goes down one level and includes both regular pages and sections.
  • We added a .RegularPages the patch some of the confusion
  • So, when you want to list “all pages” or something on the home page, you need to use site.RegularPages.

This change was unfortunate, and I probably waited to long before doing it – fearing the breakage. But in the end I closed my eyes and did it. All for a greater cause.