summaryrefslogtreecommitdiffstats
path: root/tpl/partials/init.go
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/partials/init.go')
-rw-r--r--tpl/partials/init.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/tpl/partials/init.go b/tpl/partials/init.go
index 2662b8894..e9d901bbf 100644
--- a/tpl/partials/init.go
+++ b/tpl/partials/init.go
@@ -14,6 +14,8 @@
package partials
import (
+ "context"
+
"github.com/gohugoio/hugo/deps"
"github.com/gohugoio/hugo/tpl/internal"
)
@@ -26,7 +28,7 @@ func init() {
ns := &internal.TemplateFuncsNamespace{
Name: namespaceName,
- Context: func(args ...any) (any, error) { return ctx, nil },
+ Context: func(cctx context.Context, args ...any) (any, error) { return ctx, nil },
}
ns.AddMethodMapping(ctx.Include,