You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hugo ends up generating the following minified structure:
blog
post-1/
index.html
image-1.png
ko/
blog/
post-1/
index.html
Previously (older Hugo version or anatole release?), the image-1.png file was included in both directories, like the following:
blog
post-1/
index.html
image-1.png
ko/
blog/
post-1/
index.html
image-1.png
This means that linking is broken on non-base languages. This applies to any non-markdown files, like images and Javascript files.
To Reproduce
Set up an example site in the above structure
Build with Hugo
Observe breakage
Expected behavior
Either Hugo+Anatole should copy over the files, or there should be some sort of mapping so that non-base language translation HTML files map to the files in the base language translation path.
Desktop (please complete the following information):
Version of the Theme: v1.14.0
Version of Hugo (run a hugo version if unsure) v0.123.7-312735366b20d64bd61bff8627f593749f86c964+extended windows/amd64 BuildDate=2024-03-01T16:16:06Z VendorInfo=gohugoio
Additional context
This was previously not the case and my website worked fine, but I think a recent update to either Hugo or Anatole changed the behavior. I was wondering if anybody else ran into the same problem and if there's a correct way of linking to the files so that they get mapped correctly or duplicated into different language paths.
The text was updated successfully, but these errors were encountered:
Describe the bug
Given the following layout:
Hugo ends up generating the following minified structure:
Previously (older Hugo version or anatole release?), the
image-1.png
file was included in both directories, like the following:This means that linking is broken on non-base languages. This applies to any non-markdown files, like images and Javascript files.
To Reproduce
Expected behavior
Either Hugo+Anatole should copy over the files, or there should be some sort of mapping so that non-base language translation HTML files map to the files in the base language translation path.
Desktop (please complete the following information):
hugo version
if unsure) v0.123.7-312735366b20d64bd61bff8627f593749f86c964+extended windows/amd64 BuildDate=2024-03-01T16:16:06Z VendorInfo=gohugoioAdditional context
This was previously not the case and my website worked fine, but I think a recent update to either Hugo or Anatole changed the behavior. I was wondering if anybody else ran into the same problem and if there's a correct way of linking to the files so that they get mapped correctly or duplicated into different language paths.
The text was updated successfully, but these errors were encountered: