Skip to content
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

Non-markdown files are not copied across multilingual pages #502

Open
ericswpark opened this issue Apr 24, 2024 · 0 comments
Open

Non-markdown files are not copied across multilingual pages #502

ericswpark opened this issue Apr 24, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@ericswpark
Copy link
Contributor

Describe the bug
Given the following layout:

blog/
    post-1/
        index.en.md
        index.ko.md
        image-1.png

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

  1. Set up an example site in the above structure
  2. Build with Hugo
  3. 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.

@ericswpark ericswpark added the bug Something isn't working label Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants