mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02: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:
@@ -1754,6 +1754,11 @@ func (p *Page) shouldAddLanguagePrefix() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
if p.s.owner.IsMultihost() {
|
||||
// TODO(bep) multihost check vs lang below
|
||||
return true
|
||||
}
|
||||
|
||||
if p.Lang() == "" {
|
||||
return false
|
||||
}
|
||||
|
Reference in New Issue
Block a user