mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-30 22:39:58 +02:00
Add js.Batch
Fixes #12626 Closes #7499 Closes #9978 Closes #12879 Closes #13113 Fixes #13116
This commit is contained in:
@@ -143,13 +143,29 @@ func (c *pagesCollector) Collect() (collectErr error) {
|
||||
s.pageMap.cfg.isRebuild = true
|
||||
}
|
||||
|
||||
var hasStructuralChange bool
|
||||
for _, id := range c.ids {
|
||||
if id.isStructuralChange() {
|
||||
hasStructuralChange = true
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
for _, id := range c.ids {
|
||||
if id.p.IsLeafBundle() {
|
||||
collectErr = c.collectDir(
|
||||
id.p,
|
||||
false,
|
||||
func(fim hugofs.FileMetaInfo) bool {
|
||||
return true
|
||||
if hasStructuralChange {
|
||||
return true
|
||||
}
|
||||
fimp := fim.Meta().PathInfo
|
||||
if fimp == nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return fimp.Path() == id.p.Path()
|
||||
},
|
||||
)
|
||||
} else if id.p.IsBranchBundle() {
|
||||
|
Reference in New Issue
Block a user