Add multilingual multihost support
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 2 Nov 2017 07:25:20 +0000 (08:25 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 17 Nov 2017 10:01:46 +0000 (11:01 +0100)
commit2e0465764b5dacc511b977b1c9aa07324ad0ee9c
treeae5a32eb9340e4c0e78e063228821edc29037631
parent6233ddf9d19b51f69c0c4a796d88732d1700e585
Add multilingual multihost support

This commit adds multihost support when more than one language is configured and `baseURL` is set per language.

Updates #4027
14 files changed:
commands/commandeer.go
commands/hugo.go
commands/server.go
commands/server_test.go
helpers/language.go
helpers/path.go
hugolib/config.go
hugolib/hugo_sites.go
hugolib/hugo_sites_build_test.go
hugolib/hugo_sites_multihost_test.go [new file with mode: 0644]
hugolib/multilingual.go
hugolib/page.go
hugolib/page_paths.go
hugolib/site_render.go