-
-
Notifications
You must be signed in to change notification settings - Fork 78
Description
Describe the bug
While setting up the project locally, Hugo fails to build the site due to an infinite recursive call in head.html, causing a timeout error. This prevents the site from rendering and makes local development impossible.
Error: error building site: render: failed to render pages: render of "E:/Projects/microcks.io/content/documentation/tutorials/first-soap-mock.md" failed:
"E:\Projects\microcks.io\themes\microcks\layouts\documentation\baseof.html:9:9": execute of template failed:
template: documentation/single.html:9:9: executing "documentation/single.html" at <partial "essentials/head.html" .>:
error calling partial: partial "essentials/head.html" timed out after 30s. This is most likely due to infinite recursion.
Expected behavior
Hugo should successfully build the site without timing out.
The local development server should start, allowing developers to preview the site on http://localhost:1313/.
No infinite recursion should occur in the head.html partial.
Actual behavior
Hugo build fails with a timeout error due to infinite recursion in head.html.
The site does not render, making local development impossible.
Hugo logs indicate a recursive partial call in themes/microcks/layouts/documentation/baseof.html and themes/microcks/layouts/_default/baseof.html.
How to Reproduce?
1.Clone the repository and navigate to the project directory.
2. Run: hugo server --bind 0.0.0.0 --baseURL=http://localhost:1313/ --logLevel debug
3. The build process times out with a error.
4. The local development server does not start successfully.
Microcks version or git rev
No response
Install method (docker-compose, helm chart, operator, docker-desktop extension,...)
No response
Additional information
Check for self-referencing calls:
{{ partial "essentials/head.html" . }}
This can cause an infinite loop if head.html calls itself.
Increase Hugo Timeout (Temporary Workaround)