I was playing around with adding Branch Bundles for Kinds other than regular sections and home.
So I tried adding
But after that, Hugo hangs.
I have uploaded the site to my Sandbox repo; checkout the
The build gets stuck at (below log from Netlify):
11:38:33 PM: Cloning into '/tmp/hugo/bin'... 11:38:35 PM: Hugo Static Site Generator v0.38-DEV-904A3D9D:CHROMA-5640F89 linux/amd64 BuildDate: 2018-03-19T13:41:50-0400 11:38:35 PM: Building sites … 12:08:21 AM: Build exceeded maximum allowed runtime
If I delete the
_index.md files in the
content/categories/ directories, the build starts happening once again.
My idea was that it was possible to have Branch Bundles for taxonomyTerm pages (so that we can assign, content, front-matter, image resources, etc. to those; just that I tried it out the first time.
On that branch, Hugo hangs on this commit, but starts working again once that commit is reverted (or you check out the master branch of that repo)… Build from
master branch, but without the taxonomyTerm Branch Bundles: https://hugo-sandbox.netlify.com/.
If I create a Leaf Bundle (
index.md) instead of Branch Bundle (
_index.md), Hugo works fine… but then
"page" Kind page is created for tags and categories instead of
Even Branch Bundle for taxonomy Kind page works: https://hugo-sandbox.netlify.com/tags/resources/
Actually above statement in “Update 1” is not completely true… Adding
But then Hugo started hanging again when I next added
As @onedrawingperday suggested, looks like this bug affects
taxonomyTerm branch bundles only for
categories taxonomies. What’s peculiar is that Hugo seems to hang for one case of
taxonomy Kind branch bundle (
content/categories/miscellaneous/_index.md), but not another (
Previous Debug (the “hangs” status in below debug does not apply anymore… everything works!*):
content/categories/_index.md… still hangs
content/categories/_index.md… works again!
content/tags/resources/_index.md… still works! (
resourcesis just one of the tags on that site.)
content/categories/miscellaneous/_index.md… hangs again (
miscellaneousis just one of the categories on that site.) … [See
content/categories/miscellaneous/_index.md… works again!
content/projects/foo/_index.md… both work! –
@bep Hopefully all of this help debug and fix this…
Update 4 (WORKS!)
- It makes sense to not tag a tag
taxonomyTermpage as that page is listing all the tags.
- It makes sense to not categorize a category
taxonomyTermpage as that page is listing all the categories.
With that fix, the hang issue is gone… The debugprint partial recursively shows all the nested pages in
.Data.Pages… so short-circuiting taxonomyTerm and taxonomy caused issues.
Successfully created Branch Bundles