mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-20 21:31:32 +02:00
js: Fix js.Batch for multihost setups
Note that this is an unreleased feature. Fixes #13151
This commit is contained in:
@@ -67,7 +67,7 @@ func New(fs *hugofs.Fs, cfg config.AllProvider) (*Paths, error) {
|
||||
var multihostTargetBasePaths []string
|
||||
if cfg.IsMultihost() && len(cfg.Languages()) > 1 {
|
||||
for _, l := range cfg.Languages() {
|
||||
multihostTargetBasePaths = append(multihostTargetBasePaths, l.Lang)
|
||||
multihostTargetBasePaths = append(multihostTargetBasePaths, hpaths.ToSlashPreserveLeading(l.Lang))
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user