-
Describe the bugI'm adapting the default hinode template to support multiple langues, but content does not show correctly. It must be a misconfiguration instead of a bug, but could use help to pinpoint it. To reproduceSteps to reproduce the behavior: hugo.toml:
content:
languages.toml:
When starting the site, the language menu shows, but the content is from both languages. And the Dutch page shows no content: Expected behaviorContent separated by language. Log file
Host environmentPlease complete the following information where applicable.
Hugo environmentCopy the output of > @gethinode/[email protected] env
> hugo env
hugo v0.134.1-2f89169baa87a9db47e288b60705f4e99e21a945+extended darwin/arm64 BuildDate=2024-09-05T10:17:50Z VendorInfo=gohugoio
GOOS="darwin"
GOARCH="arm64"
GOVERSION="go1.23.0"
github.com/sass/libsass="3.6.6"
github.com/webmproject/libwebp="v1.3.2"
|
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 1 reply
-
Just by looking at the config, does it help if you delete the following line? languageCode = "nl" |
Beta Was this translation helpful? Give feedback.
-
I removed that line, but the problem remains... Could it be related to #1134 ?
|
Beta Was this translation helpful? Give feedback.
-
Does it help if you disable the content mount in [module]
# [[module.mounts]]
# source = "content"
# target = "content" |
Beta Was this translation helpful? Give feedback.
-
Yes! That improves the situation substantially! The proper content is now available when selecting a language. Also the URLs make sense. The menu items and the footer for the other language don't show, however. To be sure: I cloned the template and just added to |
Beta Was this translation helpful? Give feedback.
-
Great! You will need to define the Dutch translations to get the menu and footer working. You need to add entries for [en]
[en.params.social]
title = "Follow me"
caption = "The latest news" Next you need to create a new file [[main]]
name = "Home"
pageRef = "/"
weight = 10
[[main]]
name = "Tags"
pageRef = "/tags"
weight = 20
[[social]]
name = "LinkedIn"
pre = "fab linkedin"
url = "https://linkedin.com/"
weight = 10
[[social]]
name = "GitHub"
pre = "fab fa-github"
url = "https://github.com/"
weight = 20
[[social]]
name = "Medium"
pre = "fab medium"
url = "https://medium.com/"
weight = 30 |
Beta Was this translation helpful? Give feedback.
-
That did the trick! I'm confident to embark on my Hinode adventure now. I owe you a beer! |
Beta Was this translation helpful? Give feedback.
-
I revised the documentation too - see https://gethinode.com/docs/configuration/languages/. |
Beta Was this translation helpful? Give feedback.
Does it help if you disable the content mount in
hugo.toml
?