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
I defined two languages in my hugo.yaml file English (Default) and German
theme:
- github.com/theNewDynamic/gohugo-theme-ananke
languageCode: 'en-us'
DefaultContentLanguage: en
languages:
en:
title: 'My Company'
weight: 1
languageName: English
de:
title: 'Meine Firma'
weight: 2
languageName: Deutsch
I have two markdown files ("offering.md", and "offering.de.md"), both have the following content:
...
![Placeholder for Offerings Image](images/Offerings_16x9.png)
## Our Offerings
...
The placeholder is, in both language versions, rendered as:
<img src="images/Offerings_16x9.png" alt="Placeholder for Offerings Image">
however the base URL for the German has an de at the end, so when I switch to German, the browser is looking for the image at http://127.0.0.1:1313/de/images/Offerings_16x9.png and of course not finding it. As it is actually located at http://127.0.0.1:1313/images/Offerings_16x9.png
How can I fix that?
Any help will be much appreciated
Yonz
p.s.
I'm running this on Github CodeSpace:
@yonz2 ➜ /workspaces/myproject (main) $ hugo version
hugo v0.120.4-f11bca5fec2ebb3a02727fb2a5cfb08da96fd9df linux/amd64 BuildDate=2023-11-08T11:18:07Z VendorInfo=gohugoio
The text was updated successfully, but these errors were encountered:
Hi,
I defined two languages in my hugo.yaml file English (Default) and German
I have two markdown files ("offering.md", and "offering.de.md"), both have the following content:
The placeholder is, in both language versions, rendered as:
however the base URL for the German has an
de
at the end, so when I switch to German, the browser is looking for the image athttp://127.0.0.1:1313/de/images/Offerings_16x9.png
and of course not finding it. As it is actually located athttp://127.0.0.1:1313/images/Offerings_16x9.png
How can I fix that?
Any help will be much appreciated
Yonz
p.s.
I'm running this on Github CodeSpace:
The text was updated successfully, but these errors were encountered: