Hello,
I was playing around with adding Branch Bundles for Kinds other than regular sections and home.
So I tried adding _index.md
as content/tags/_index.md
.
But after that, Hugo hangs.
I have uploaded the site to my Sandbox repo; checkout the taxonomyterm-_index-hugo-hang
branch.
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/tags/
and 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 "taxonomyTerm"
Kind.
Update 1
Even Branch Bundle for taxonomy Kind page works: https://hugo-sandbox.netlify.com/tags/resources/
Update 2
Actually above statement in “Update 1” is not completely true… Adding content/tags/resources/_index.md
worked.
But then Hugo started hanging again when I next added content/categories/miscellaneous/_index.md
.
Update 3
As @alexandros suggested, looks like this bug affects taxonomy
and taxonomyTerm
branch bundles only for tags
and 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 (content/tags/resources/_index.md
).
Previous Debug (the “hangs” status in below debug does not apply anymore… everything works!*):
- Add
content/_index.md
… works - Add
content/tags/_index.md
… hangs - Add
content/categories/_index.md
… still hangs - Remove
content/tags/_index.md
andcontent/categories/_index.md
… works again! - Add
content/tags/resources/_index.md
… still works! (resources
is just one of the tags on that site.) - Add
content/categories/miscellaneous/_index.md
… hangs again(
miscellaneous
is just one of the categories on that site.) … [Seetaxonomy-_index.md-hugo-hang2
branch] - Remove
content/categories/miscellaneous/_index.md
… works again! - Add
content/projects/_index.md
andcontent/projects/foo/_index.md
… both work! –master
branch
@bep Hopefully all of this help debug and fix this…
Update 4 (WORKS!)
- It makes sense to not tag a tag
taxonomyTerm
page as that page is listing all the tags. - It makes sense to not categorize a category
taxonomyTerm
page 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
- https://hugo-sandbox.netlify.com/
- https://hugo-sandbox.netlify.com/tags/
- https://hugo-sandbox.netlify.com/tags/resources/
- https://hugo-sandbox.netlify.com/categories/
- https://hugo-sandbox.netlify.com/categories/miscellaneous/
- https://hugo-sandbox.netlify.com/projects/
- https://hugo-sandbox.netlify.com/projects/foo/