-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Remove the language id from page resources when publishing multilingual page bundles #9557
Milestone
Comments
There is another issue about this (somewhere), I even have a branch with a fix -- but that branch needs some ... ehhm... more work. |
jmooring
added a commit
to jmooring/hugo-testing
that referenced
this issue
Nov 13, 2022
Requires an image render hook to workaround: gohugoio/hugo#9557
jmooring
added a commit
to jmooring/hugo-testing
that referenced
this issue
Nov 13, 2022
Requires an image render hook to workaround: gohugoio/hugo#9557
jmooring
added a commit
to jmooring/hugo-testing
that referenced
this issue
Nov 13, 2022
Requires an image render hook to workaround: gohugoio/hugo#9557
Duplicate of #7437. |
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am not sure if this is (a) a defect, (b) an improvement, or (c) a dumb idea.
content structure
content/about/index.md
content/about/index.es.md
Build the site
With this setup, the
img
element inpublic/es/about/index.html
refers to a non-existent path:The proposed solution is to remove the language id from page resources when publishing multilingual page bundles. This is not limited to images; it would be applied to all page resources.
We have made this setup work with an image render hook that falls back to a language-specific resource, but it seems like we shouldn't have to do this. Maybe.
Minimal reproducible example:
git clone --single-branch -b hugo-github-issue-9557 https://github.com/jmooring/hugo-testing hugo-github-issue-9557 cd hugo-github-issue-9557 hugo tree public grep img public/es/about/index.html
Reference: https://discourse.gohugo.io/t/multi-language-images-and-page-bundles/37325
The text was updated successfully, but these errors were encountered: