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:
@@ -41,6 +41,10 @@ func (c *commandeer) PathSpec() *helpers.PathSpec {
|
||||
return c.pathSpec
|
||||
}
|
||||
|
||||
func (c *commandeer) languages() helpers.Languages {
|
||||
return c.Cfg.Get("languagesSorted").(helpers.Languages)
|
||||
}
|
||||
|
||||
func (c *commandeer) initFs(fs *hugofs.Fs) error {
|
||||
c.DepsCfg.Fs = fs
|
||||
ps, err := helpers.NewPathSpec(fs, c.Cfg)
|
||||
|
Reference in New Issue
Block a user