Fix rebuild regression on non-default content language edits

Fixes #12043
This commit is contained in:
Bjørn Erik Pedersen
2024-02-16 14:24:35 +01:00
parent 43ea2cd660
commit 68f67c9aeb
4 changed files with 91 additions and 15 deletions

View File

@@ -702,7 +702,7 @@ func (h *HugoSites) processPartial(ctx context.Context, l logg.LevelLogger, conf
switch pathInfo.Component() {
case files.ComponentFolderContent:
logger.Println("Source changed", pathInfo.Path())
if ids := h.pageTrees.collectIdentities(pathInfo); len(ids) > 0 {
if ids := h.pageTrees.collectAndMarkStaleIdentities(pathInfo); len(ids) > 0 {
changes = append(changes, ids...)
}