diff options
Diffstat (limited to 'tpl/transform/unmarshal.go')
-rw-r--r-- | tpl/transform/unmarshal.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tpl/transform/unmarshal.go b/tpl/transform/unmarshal.go index dc9029c8d..23b99d91f 100644 --- a/tpl/transform/unmarshal.go +++ b/tpl/transform/unmarshal.go @@ -22,11 +22,11 @@ import ( "github.com/gohugoio/hugo/resources" "github.com/gohugoio/hugo/resources/resource" + "github.com/gohugoio/hugo/common/hashing" "github.com/gohugoio/hugo/common/types" "github.com/mitchellh/mapstructure" - "github.com/gohugoio/hugo/helpers" "github.com/gohugoio/hugo/parser/metadecoders" "github.com/spf13/cast" @@ -117,7 +117,7 @@ func (ns *Namespace) Unmarshal(args ...any) (any, error) { return nil, errors.New("no data to transform") } - key := helpers.MD5String(dataStr) + key := hashing.MD5FromStringHexEncoded(dataStr) v, err := ns.cache.GetOrCreate(key, func(string) (*resources.StaleValue[any], error) { f := decoder.FormatFromContentString(dataStr) |