From 94459680ba391275ac667407627cafdab5a50d79 Mon Sep 17 00:00:00 2001 From: Sara Op den Orth Date: Thu, 24 Mar 2022 13:24:30 +0100 Subject: Deprecate .File.Extension Fixes #9352 --- hugolib/hugo_sites.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hugolib') 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) } -- cgit v1.2.3