Deprecate .File.Extension

Fixes #9352
This commit is contained in:
Sara Op den Orth
2022-03-24 13:24:30 +01:00
committed by Bjørn Erik Pedersen
parent 9202117ba0
commit 94459680ba
2 changed files with 9 additions and 5 deletions

View File

@@ -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)
}