diff options
Diffstat (limited to 'tpl/strings/init.go')
-rw-r--r-- | tpl/strings/init.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tpl/strings/init.go b/tpl/strings/init.go index 503ec6a25..37a489128 100644 --- a/tpl/strings/init.go +++ b/tpl/strings/init.go @@ -14,6 +14,8 @@ package strings import ( + "context" + "github.com/gohugoio/hugo/deps" "github.com/gohugoio/hugo/tpl/internal" ) @@ -26,7 +28,7 @@ func init() { ns := &internal.TemplateFuncsNamespace{ Name: name, - Context: func(args ...any) (any, error) { return ctx, nil }, + Context: func(cctx context.Context, args ...any) (any, error) { return ctx, nil }, } ns.AddMethodMapping(ctx.Chomp, |