mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-15 20:44:01 +02:00
js: Fix js.Batch for multihost setups
Note that this is an unreleased feature. Fixes #13151
This commit is contained in:
@@ -141,13 +141,6 @@ func (fd *ResourceSourceDescriptor) init(r *Spec) error {
|
||||
}
|
||||
|
||||
fd.TargetPath = paths.ToSlashPreserveLeading(fd.TargetPath)
|
||||
for i, base := range fd.TargetBasePaths {
|
||||
dir := paths.ToSlashPreserveLeading(base)
|
||||
if dir == "/" {
|
||||
dir = ""
|
||||
}
|
||||
fd.TargetBasePaths[i] = dir
|
||||
}
|
||||
|
||||
if fd.NameNormalized == "" {
|
||||
fd.NameNormalized = fd.TargetPath
|
||||
|
Reference in New Issue
Block a user