gohugoio / hugo

The world’s fastest framework for building websites.
https://gohugo.io
Apache License 2.0
74.63k stars 7.45k forks source link

Unable to locate Config file when using different file name (trying to create a multilingual site) #1513

Closed shaief closed 8 years ago

shaief commented 8 years ago

When running hugo with specific config file (config_en.toml) that sits in the root directory (next to the default config.toml):

hugo server --theme=landing-page-hugo --buildDrafts --config="config_en"

I get the following error:

ERROR: 2015/10/21 Unable to locate Config file. Perhaps you need to create a new site. Run `hugo help new` for details
ERROR: 2015/10/21 No 'baseurl' set in configuration or as a flag. Features like page menus will not work without one.

Did anyone here faced this issue before? is it a bug or something i do wrong?

Thanks!

bep commented 8 years ago

Use The correct file name incl suffix

shaief commented 8 years ago

No. It doesn't work:

hugo server --theme=landing-page-hugo --buildDrafts --config=config_en.toml
ERROR: 2015/10/22 Error parsing config: Near line 4 (last key parsed ''): Bare keys cannot contain '.'.
bep commented 8 years ago

This is another error, indicates some error in the file itself.

Questions works better at

http://discuss.gohugo.io/

github-actions[bot] commented 2 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.