Odd build issues (theme layout not looking up correct template)

The home page’s .Kind is home. It is neither a regular page (single) nor a section (list), but it behaves like a section (list) in that it receives a page collection in context.

Have a look at the template lookup order for the home page:
https://gohugo.io/templates/lookup-order/#examples-layout-lookup-for-home-page

The underlying content file for section pages is _index.md. The same is true for the home page.

It is looking for layouts/hero/list.html.

1 Like