Fix --printPathWarnings when site calls templates.Defer

This issue was introduced recently in eb7a5aabaa.

Fixes #13420
This commit is contained in:
Bjørn Erik Pedersen
2025-02-19 08:44:37 +01:00
parent 669216e204
commit c3d435acfa
2 changed files with 20 additions and 6 deletions

View File

@@ -85,7 +85,8 @@ type HugoSites struct {
pageTrees *pageTrees
postRenderInit sync.Once
printUnusedTemplatesInit sync.Once
printPathWarningsInit sync.Once
// File change events with filename stored in this map will be skipped.
skipRebuildForFilenamesMu sync.Mutex