Soon II’ll have a multilingual site live that is all on one domain (2 languages). Once live I’ll put link here.
I used a combination of things, initially a post from here or an example from github which set me of in the right direcction. I don’t remember where… Try the examples in the Hugo repository.
Gosh, thanks. It’d be cool if there were some kinda official documentation, though. Please consider this as a humble (but critical IMO!) feature request.
Yes - it will come. But the multilingual situation isn’t perfect in Hugo at the moment. It’s possible, but it will improve once we get some standardized ways to do localization in Go community.
That’s up to you. Some people also use subdomains. There are pros and cons to each approach (SEO, etc), but as far as Hugo as concerned they are all about the same cost.
I basically copied this and made a couple of changes to how the public urls were made (so they didn’t sit inside, then worked the content and layout around it. Don’t remember more details at this stage because other aspects of it got more focus (galllery being one).
uses en and de sub directories below root. For building two different configs are used, reflecting the according baseurl for each language. You can switch between languages on page level.
After deploying nginx is taking care redirecting root to the language directory of the language to start with.
The key here seems to be two use different config, since else it would mix up diifferent content languages.
As soon as there is some spare time I’ll put the theme and some documentation, how everything is set up on github. Might take a few days though.
Yes, now you can have multiple languages under a single domain.
Here’s how to do it: Multi-Language Hugo site under single domain with two-pass build. Multiple sites with shared static assets and themes, each site can have multiple language content trees, all under the same domain.
We show it invoked by entr, the non-polling watcher.
Enjoy. Feedback appreciated,
Yitzhak