diff options
author | Bjørn Erik Pedersen <[email protected]> | 2017-11-02 08:25:20 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2017-11-17 11:01:46 +0100 |
commit | 2e0465764b5dacc511b977b1c9aa07324ad0ee9c (patch) | |
tree | ae5a32eb9340e4c0e78e063228821edc29037631 /hugolib/site_render.go | |
parent | 6233ddf9d19b51f69c0c4a796d88732d1700e585 (diff) | |
download | hugo-2e0465764b5dacc511b977b1c9aa07324ad0ee9c.tar.gz hugo-2e0465764b5dacc511b977b1c9aa07324ad0ee9c.zip |
Add multilingual multihost support
This commit adds multihost support when more than one language is configured and `baseURL` is set per language.
Updates #4027
Diffstat (limited to 'hugolib/site_render.go')
-rw-r--r-- | hugolib/site_render.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/site_render.go b/hugolib/site_render.go index 4118f3eef..b4d688bda 100644 --- a/hugolib/site_render.go +++ b/hugolib/site_render.go @@ -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) |