-
-
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
Site builds with Hugo 122 but not 123 #12174
Comments
A little more info: You can get the site to build by commenting out this line in layouts/shortcodes/featured/series.html but the homepage still builds wrong with no featured items, which makes me think something in the page getter is broken
|
The short story is that we have stopped "urlizing" the terms when we store them (there's a long story as to why). So, you should be able to do:
But ... I would recommend that you rewrite the above to:
For several reasons, one being that |
I am having the same problem when update to 123 or newer release. 122 is fine. Start building sites …
hugo v0.123.6-92684f9a26838a46d1a81e3c250fef5207bcb735+extended linux/amd64 BuildDate=2024-02-28T18:29:40Z VendorInfo=gohugoio
Built in 280 ms
Error: error building site: render: failed to render pages: render of "section" failed: "/home/james/quickstart/layouts/_default/list.html:20:7": execute of template failed: template: _default/list.html:20:7: executing "main" – File is nil; wrap it in if or with: {{ with partial "article-meta/list.html" (dict "context" . "scope" "single")>: error calling partial: "/home/james/quickstart/layouts/partials/article-meta/list.html:17:32": execute of template failed: template: partials/article-meta/list.html:17:32: executing "partials/article-meta/list.html" at <partial "meta/views.html" .>: error calling partial: "/home/james/quickstart/layouts/partials/meta/views.html:7:28": execute of template failed: template: partials/meta/views.html:7:28: executing "partials/meta/views.html" at <.File }}{{ .Path }}{{ end }} I am using blowfish theme. v2.58.0 Thank you |
@i0day The behavior you noted is not related to this issue. See #12176, and create a topic on the forum (https://discourse.gohugo.io/) if you have any questions. |
Using |
@earthboundkid The fact that "content/something" worked before was either luck and/or undocumented behavior. https://gohugo.io/methods/site/getpage/
So this doesn't seem like a bug to me. |
I am willing to believe this is Hyrum's Law. I've been including content/ for years, but I can go through and start stripping them out. |
I am willing to believe the content thing was a bug on my part, but I still don't like the series thing because I don't see how I can write a site that will work with 122 and 123. |
v0.123.0 introduced a number of intentional breaking (not backward compatible) changes. This is one of them. |
There's backward compatibility and there's forward compatibility. Breaking BC isn't ideal, but sometimes it's necessary to say you can't use feature A after version X. The solution for end users is you just have to drop using feature A and start using feature B instead. v1 A only Breaking taxonomy look up breaks forward compatibility because there's no way to write code that will work on both 122 and 123. You just have to do a hard cutover. I think breaking forward compatibility is basically always a mistake because it segments the community. If you're a theme author, you can't use feature A or B because you can't know if users have code from before or after the cut. You just have to drop everything and hope that in some amount of time you can introduce B after everyone has upgraded, but no one wants to upgrade because they will lose A. It's a mess. |
I have found another issue. Hugo is now not using layouts/_default/author.terms.html for /authors/ anymore. I can workaround this by setting layout = "author.terms" but this is a lot of breakage for one release. :-( |
Please open another issue. |
This issue really wasn't ready to be closed in the first place. :-/ I found another problem which relates to the original problem. We have series with commas in their names. Now they are showing up twice in the list of series, once with the metadata from _index.md and once without it. The workaround of changing |
123 has somehow created a paginated 404 directory with 98 entries. |
We are not going to track multiple problems in a single issue. |
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes.
Output
Steps to reproduce
yarn install
hugo
orhugo server
Workaround
Use Hugo 122
The text was updated successfully, but these errors were encountered: