Fix rebuild when changing mixed case named templates

Fixes #12165
This commit is contained in:
Bjørn Erik Pedersen
2024-03-20 11:00:08 +01:00
parent c1ea22a232
commit 19937a20ad
2 changed files with 25 additions and 1 deletions

View File

@@ -730,7 +730,7 @@ func (h *HugoSites) processPartial(ctx context.Context, l logg.LevelLogger, conf
case files.ComponentFolderLayouts:
tmplChanged = true
templatePath := pathInfo.TrimLeadingSlash().PathNoLang()
templatePath := pathInfo.Unnormalized().TrimLeadingSlash().PathNoLang()
if !h.Tmpl().HasTemplate(templatePath) {
tmplAdded = true
}