Preserve file/dir name case when loading data

Fixes #11979
This commit is contained in:
Bjørn Erik Pedersen
2024-02-03 15:43:28 +01:00
parent 058f230a1b
commit 46575baa02
4 changed files with 20 additions and 3 deletions

View File

@@ -502,7 +502,7 @@ func (h *HugoSites) handleDataFile(r *source.File) error {
// Crawl in data tree to insert data
current = h.data
dataPath := r.FileInfo().Meta().PathInfo.Dir()[1:]
dataPath := r.FileInfo().Meta().PathInfo.Unmormalized().Dir()[1:]
keyParts := strings.Split(dataPath, "/")
for _, key := range keyParts {