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