aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/pagesfromdata/pagesfromgotmpl.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2024-12-10 16:22:08 +0100
committerBjørn Erik Pedersen <[email protected]>2024-12-12 21:43:17 +0100
commite293e7ca6dcc34cded7eb90a644b5c720c2179cf (patch)
treedee8e8d272660d23aa7b76576e8267fc70c34f78 /hugolib/pagesfromdata/pagesfromgotmpl.go
parent157d86414d43f6801e2a6996108f67d28679eac5 (diff)
downloadhugo-e293e7ca6dcc34cded7eb90a644b5c720c2179cf.tar.gz
hugo-e293e7ca6dcc34cded7eb90a644b5c720c2179cf.zip
Add js.Batch
Fixes #12626 Closes #7499 Closes #9978 Closes #12879 Closes #13113 Fixes #13116
Diffstat (limited to 'hugolib/pagesfromdata/pagesfromgotmpl.go')
-rw-r--r--hugolib/pagesfromdata/pagesfromgotmpl.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/hugolib/pagesfromdata/pagesfromgotmpl.go b/hugolib/pagesfromdata/pagesfromgotmpl.go
index fd7213bd9..2ee273718 100644
--- a/hugolib/pagesfromdata/pagesfromgotmpl.go
+++ b/hugolib/pagesfromdata/pagesfromgotmpl.go
@@ -245,10 +245,11 @@ func (b *BuildState) resolveDeletedPaths() {
return
}
var paths []string
- b.sourceInfosPrevious.ForEeach(func(k string, _ *sourceInfo) {
+ b.sourceInfosPrevious.ForEeach(func(k string, _ *sourceInfo) bool {
if _, found := b.sourceInfosCurrent.Get(k); !found {
paths = append(paths, k)
}
+ return true
})
b.DeletedPaths = paths
@@ -287,6 +288,10 @@ func (p *PagesFromTemplate) GetDependencyManagerForScope(scope int) identity.Man
return p.DependencyManager
}
+func (p *PagesFromTemplate) GetDependencyManagerForScopesAll() []identity.Manager {
+ return []identity.Manager{p.DependencyManager}
+}
+
func (p *PagesFromTemplate) Execute(ctx context.Context) (BuildInfo, error) {
defer func() {
p.buildState.PrepareNextBuild()