]> git.maquefel.me Git - brevno-suite/hugo/commit
Fix template change detection for multi-version sites
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 1 Feb 2026 21:24:52 +0000 (22:24 +0100)
committerGitHub <noreply@github.com>
Sun, 1 Feb 2026 21:24:52 +0000 (22:24 +0100)
commit0f1c7d12000f7db7f1f45366c2dc4355b1511d5f
tree825e4dfda4babae220be786b751a23eacee7bfec
parent10352335e04c4779e101b6d40202dd90a170dda0
Fix template change detection for multi-version sites

When templates were edited in a multi-version/role setup, only pages
from the current site slice (h.Sites) were checked for dependencies,
not pages from all sites. Fix by changing withPage to iterate over
all sites using allSites.

Fixes #14461

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
hugolib/hugo_sites.go
hugolib/sitesmatrix/sitematrix_integration_test.go