Fix rebuild when deleting a content adapter file

This commit is contained in:
Bjørn Erik Pedersen
2025-08-15 13:10:27 +02:00
parent 1649f3126f
commit 87e100e61f
3 changed files with 47 additions and 2 deletions

View File

@@ -192,6 +192,10 @@ func (c *pagesCollector) Collect() (collectErr error) {
return strings.HasPrefix(fim.Meta().PathInfo.Path(), paths.AddTrailingSlash(id.p.Path()))
}
if id.p.IsContentData() {
return strings.HasPrefix(fim.Meta().PathInfo.Path(), paths.AddTrailingSlash(id.p.Dir()))
}
return id.p.Dir() == fim.Meta().PathInfo.Dir()
}