I have tried other variants (The glob was just to see if anything is returned), but no matter what I try it returns <nil>. Now I believe I have successfully set up the leaf bundle, as {{ (.Site.GetPage "page" "business").Content }} successfully returns the content from business/index.md.
How do I get content from other pages in the leaf bundle though? The docs are really unclear.
Yes, it will help. Because we are all volunteers, and no one wants to copy and paste a bunch of files to recreate your issue. So please combine your templates and content into a Hugo project and share it. Then folks can assist you. Please refer to Requesting Help for guidelines on getting help in the forums.
Solved. Finally found a comment by bep himself, so I copied his example in at the top level. It worked so I investigated further.
Turns out I was just trying to use
.Site.GetPage "page" "section/headless-bundle"
when I should have just used
.Site.GetPage "page" "headless-bundle"
Follow up question: is it possible to get an array of headless bundles in a subdirectory to use as sections on a homepage without having to give them a common prefix? Currently I am using custom Params…