-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't build site after upgrading Hugo #11757
Comments
@sankayop A reproducible example would be helpful. Possible of duplicate of #11507, which might be resolved in Go 1.22 with https://go-review.googlesource.com/c/go/+/507995 (merged 2 Oct 2023). |
Hi @jmooring , I'm not using Hugo on a regular basis so it takes a bit of an effort to get the smallest case but.
then remove following lines from following files:
then:
and you get the site working with 0.118 but not with 0.119 and latest. I hope it can help making Hugo better :) |
Your site has several errors and deprecated functions. Try this modified copy of your site https://filebin.net/eyok6f0unb4y5gkl. Pay attention to the |
Thanks @dongorgan , Thanks for your review |
The issue is simply reduced to:
This is user error (missing quotation): https://github.com/appernetic/hugo-nederburg-theme/blob/master/layouts/partials/schema.html#L24 Go's html/template package is doing the right thing. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
yes, I have also tried with the gohugo-extended-bin-0.120.4-1 but same error.
Error:
ERROR render of "page" failed: "/home/me/hugoProject/layouts/_default/baseof.html:3:9": execute of template failed: template: artists/single.html:3:9: executing "artists/single.html" at <partial "head.html" .>: error calling partial: "/home/me/hugoProject/layouts/partials/head.html:3:8": execute of template failed: template: partials/head.html:3:8: executing "partials/head.html" at <partial "schema" .>: error calling partial: execute of template failed: html/template:partials/schema.html: ends in a non-text context: {stateJSDqStr delimNone urlPartNone jsCtxRegexp attrNone elementScript }
Workaround:
downgrading package hugo (0.119.0-1 => 0.118.2-2)
The text was updated successfully, but these errors were encountered: