Description
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:
git clone --recursive git@github.com:bugok/blog dksjbkdsjb
Run hugo locally, show drafts:
hugo serve -D
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:
hugo -D
...
$ ls -l public/he/posts/kindle_hebrew_font
total 56
drwxr-xr-x 3 noamler staff 96 Jun 14 09:46 ./
drwxr-xr-x 8 noamler staff 256 Jun 14 09:46 ../
-rw-r--r-- 1 noamler staff 27947 Jun 14 09:46 index.html
For the English site - images are showing up properly.
When I change the default language to Hebrew in config, it does work:
$ git diff
diff --git a/config/_default/config.toml b/config/_default/config.toml
index 926ab6c..5304317 100644
--- a/config/_default/config.toml
+++ b/config/_default/config.toml
@@ -4,7 +4,7 @@
# baseURL = "https://your_domain.com/"
baseUrl = "https://www.noamlerner.com/"
-defaultContentLanguage = "en"
+defaultContentLanguage = "he"
paginate = 10
theme = 'congo'
enableRobotsTXT = true
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
Hugo output or build error messages
$ hugo
Start building sites …
hugo v0.127.0+extended darwin/arm64 BuildDate=2024-06-05T10:27:59Z VendorInfo=brew
| EN | HE
-------------------+-----+-----
Pages | 93 | 15
Paginator pages | 4 | 0
Non-page files | 43 | 8
Static files | 7 | 7
Processed images | 140 | 0
Aliases | 32 | 2
Cleaned | 0 | 0
Total in 215 ms