Closed bugok closed 2 months ago
This seems to be very similar to this issue: https://github.com/gohugoio/hugo/issues/12163
But, not quite the same.
Maybe this is a hugo issue, and not a theme issue?
OK, this is my misunderstanding how to do multi language images in hugo.
Looking at the documentation: https://gohugo.io/content-management/multilingual/#page-bundles, I found that I needed to rename the image files with the language suffix.
Meaning, if I have an image.jpg
, I would need to rename it to image.he.jpg
. When referencing this image in markdown, reference it as image.jpg
Issue description
I have a website using congo. When adding image references to the non-default language - images aren't showing up in the post.
Repro steps: clone my repo, with the submodule:
Run hugo locally, show drafts:
See that http://localhost:1313/he/posts/kindle_hebrew_font/ doesn't show the image:
When running the build command, I don't see the images in the
public
directory, alongside the html file:For the English site - images are showing up properly.
When I change the default language to Hebrew in config, it does work:
Then, loading http://localhost:1313/posts/kindle_hebrew_font/ does show the image:
Theme version
v2.8.2
Hugo version
hugo v0.127.0+extended darwin/arm64 BuildDate=2024-06-05T10:27:59Z VendorInfo=brew
Which browser rendering engines are you seeing the problem on?
Chromium (Google Chrome, Microsoft Edge, Brave, Vivaldi, Opera, etc.)
URL to sample repository or website
https://github.com/bugok/blog
Hugo output or build error messages