-
-
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
Page.Resources.Get is broken in 0.123.0-DEV #11944
Comments
The problem in your case is, I guess, the spaces in the file name, something I would strongly advice against (In Hugo, but I guess also in general). I will check this case, though, I see we check both the normalised and the original name, so the above should work. |
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. |
The problem is: hugo now somehow converts resources names - it brings all to lowercase and replaces spaces with dashes, and .Resources.Get no longer work.
For example, we have a page resource named
Test 1.jpg
. Formerly.Resources.Get "Test 1.jpg"
worked, but not with development version (we've tried it since we really need the optimizations that are coming next version). Also, dumping.Resources
shows that internally hugo represents that resource name astest-1.jpg
.What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
No, it works fine in 0.122, but it is broken in dev version (commit ec22bb3).
The text was updated successfully, but these errors were encountered: