We’re building a website with Hugo. Everything works fine in local. Here is the Github repo.
When I’m running hugo server -D --watch --verbose, I have this as output:
INFO 2019/12/22 00:58:28 Using config file:
Building sites … INFO 2019/12/22 00:58:28 syncing static files to /fr
INFO 2019/12/22 00:58:28 found taxonomies: map[string]string{"tag":"tags"}
INFO 2019/12/22 00:58:28 found taxonomies: map[string]string{"tag":"tags"}
INFO 2019/12/22 00:58:28 syncing static files to /en
| FR | EN
+------------------+----+----+
Pages | 28 | 28
Paginator pages | 0 | 0
Non-page files | 0 | 0
Static files | 5 | 5
Processed images | 0 | 0
Aliases | 0 | 0
Sitemaps | 1 | 1
Cleaned | 0 | 0
Total in 71 ms
Watching for changes in /Users/nioperas06/workspace/opensource/PythonBenin.github.io/{content,data,i18n,layouts,static}
Watching for config changes in /Users/nioperas06/workspace/opensource/PythonBenin.github.io/config.toml
Environment: "development"
Serving pages from memory
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at //localhost:1313/ (bind address 127.0.0.1)
Environment: "development"
Web Server is available at //localhost:1314/ (bind address 127.0.0.1)
Press Ctrl+C to stop
But when I deploy the website on Netlify, I have this as result:
It seems you only need to specify baseURL for different languages if you’re planning on serving them from different domains. The easier solution is to have each language running from a subdirectory, and if you’re doing that, I don’t think you need to set baseURL for each language.