Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSara Op den Orth <sara@opdenorth.com>2022-03-24 15:24:30 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-03-26 12:03:36 +0300
commit94459680ba391275ac667407627cafdab5a50d79 (patch)
treeee01acde2954fc1239c0f84d222306c7c5c04980 /hugolib
parent9202117ba08286975c723130db60a1c69ff249a0 (diff)
Deprecate .File.Extension
Fixes #9352
Diffstat (limited to 'hugolib')
-rw-r--r--hugolib/hugo_sites.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/hugo_sites.go b/hugolib/hugo_sites.go
index 182d6bad1..9b27ae5e3 100644
--- a/hugolib/hugo_sites.go
+++ b/hugolib/hugo_sites.go
@@ -978,7 +978,7 @@ func (h *HugoSites) readData(f source.File) (any, error) {
defer file.Close()
content := helpers.ReaderToBytes(file)
- format := metadecoders.FormatFromString(f.Extension())
+ format := metadecoders.FormatFromString(f.Ext())
return metadecoders.Default.Unmarshal(content, format)
}