gethugothemes / bigspring-light-hugo

Bigspring is a Hugo startup theme. It has a clean, minimal, fresh UI.
https://gethugothemes.com/products/bigspring/?utm_source=bigspring_github&utm_medium=referral&utm_campaign=github_theme_about
MIT License
198 stars 299 forks source link

How can I change the default language? #41

Closed ghost closed 3 years ago

ghost commented 3 years ago

I want to set other languages as the default language instead of English. What should I do?

tfsomrat commented 3 years ago

Hello @iucvcom

Please follow this official Hugo Docs https://gohugo.io/content-management/multilingual/

eteitelbaum commented 2 years ago

Hi, in relation to this, where is defaultContentLanguage: en? I do not see this line in config.yaml in the config\_default folder.

mehedi-sharif commented 2 years ago

Hello @eteitelbaum This is not available in the file right now, but you can add it at the top of the config.toml. and it will work. thank you

eteitelbaum commented 2 years ago

Thanks, what if I just want to set the language to English and get rid of the toggle between English and German (all the way on the top right menu)? Is there a way to do that? I tried clearing out languages.toml but then the site won't compile. I really just want to get rid of that toggle button (EN/DE).

mehedi-sharif commented 2 years ago

You can disable de language, then your multilingual will automatically turn off. here is how you can do it https://gohugo.io/content-management/multilingual/#disable-a-language