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