diff options
Diffstat (limited to 'tpl/encoding/encoding.go')
-rw-r--r-- | tpl/encoding/encoding.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tpl/encoding/encoding.go b/tpl/encoding/encoding.go index 09e2b94bc..ce25151a0 100644 --- a/tpl/encoding/encoding.go +++ b/tpl/encoding/encoding.go @@ -20,6 +20,7 @@ import ( "errors" "html/template" + "github.com/gohugoio/hugo/common/maps" "github.com/spf13/cast" ) @@ -71,7 +72,7 @@ func (ns *Namespace) Jsonify(args ...interface{}) (template.HTML, error) { case 2: var opts map[string]string - opts, err = cast.ToStringMapStringE(args[0]) + opts, err = maps.ToStringMapStringE(args[0]) if err != nil { break } |