-
-
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
resources.Match seems to be renaming files with spaces, and making the resource nil #12081
Comments
Fixed in #12076 |
@bep I think that commit is part of the v0.123.1 release, but this issue is unchanged $ hugo version
hugo v0.123.1+extended linux/amd64 BuildDate=unknown
|
In this context, Not sure what you're trying to do. Maybe you want this:
These are the available methods on a
This issue is closed. If you need further assistance, please create a new topic on the forum. Thanks. |
Ah true, duh, my bad! The files in our real source were images |
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
Steps to recreate
Then I added a shortcode
resources.html
referenced the shortcode
hello.md
Then added a "test doc.txt" in the assets folder, and I get this error
If I change
{{ .src }}
to{{ . }}
in my partial, I see this outputWhere it appears to be adding a dash that wasn't there to begin with. If I remove the space myself it works as expected.
The text was updated successfully, but these errors were encountered: