diff options
Diffstat (limited to 'tpl/safe/init.go')
-rw-r--r-- | tpl/safe/init.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tpl/safe/init.go b/tpl/safe/init.go index 794c9d6f0..8fc0e82ea 100644 --- a/tpl/safe/init.go +++ b/tpl/safe/init.go @@ -14,6 +14,8 @@ package safe 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.CSS, |