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

DefaultContentLanguage issue #678

Open
lucassimon opened this issue Jan 16, 2025 · 2 comments
Open

DefaultContentLanguage issue #678

lucassimon opened this issue Jan 16, 2025 · 2 comments

Comments

@lucassimon
Copy link

Hello, when I try this new version bilberry-hugo-theme-4.10.0 the I saw the DefaultContentLanguage does not work well. It alwayes redirect to EN language

Image

Image

Another css bug

Image

@igor-baiborodine
Copy link
Collaborator

@lucassimon, please provide your hugo.toml configuration file. Also, what are the steps to reproduce the issue?

@drohhyn
Copy link

drohhyn commented Feb 7, 2025

I have a similar issue (with v4 as git submodule), relevant parts from hugo.toml:

#theme = "bilberry-hugo-theme"
[module]
  [[module.imports]]#imported to use as submodule
    path = "bilberry-hugo-theme/v4"
# Change to one of your content languages defined at the end.
defaultContentLanguage = "de"
[...]
# customize your available languages for your multi-lingual site
# or delete one of the [Languages.xx] blocks to use the theme with only one supported language
[languages]
  # fails when removing en
  [languages.en]
    weight = 1
  [languages.de]
    weight = 1
    #title = "Mein cooler neuer Blog"
    #subtitle = "Hallo Welt! Dies ist der epischste Untertitel aller Zeiten."

When remoing languages.en (as suggested in the comment) hugo fails with
Failed to reload config: failed to create config from result: failed to decode "languages": config value "en" for defaultContentLanguage does not match any language definition

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants