mirror of
https://github.com/gohugoio/hugo.git
synced 2025-09-01 22:42:45 +02:00
committed by
Bjørn Erik Pedersen
parent
9202117ba0
commit
94459680ba
@@ -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)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user