mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-27 14:10:31 +03:00
Add multilingual multihost support
This commit adds multihost support when more than one language is configured and `baseURL` is set per language. Updates #4027
This commit is contained in:
parent
6233ddf9d1
commit
2e0465764b
14 changed files with 350 additions and 80 deletions
|
@ -387,7 +387,7 @@ func (s *Site) renderAliases() error {
|
|||
}
|
||||
}
|
||||
|
||||
if s.owner.multilingual.enabled() {
|
||||
if s.owner.multilingual.enabled() && !s.owner.IsMultihost() {
|
||||
mainLang := s.owner.multilingual.DefaultLang
|
||||
if s.Info.defaultContentLanguageInSubdir {
|
||||
mainLangURL := s.PathSpec.AbsURL(mainLang.Lang, false)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue