diff options
Diffstat (limited to 'tpl/site/init.go')
-rw-r--r-- | tpl/site/init.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tpl/site/init.go b/tpl/site/init.go index 34ea7309f..3d293f3fe 100644 --- a/tpl/site/init.go +++ b/tpl/site/init.go @@ -15,6 +15,8 @@ package site import ( + "context" + "github.com/gohugoio/hugo/deps" "github.com/gohugoio/hugo/tpl/internal" @@ -27,7 +29,7 @@ func init() { s := d.Site ns := &internal.TemplateFuncsNamespace{ Name: name, - Context: func(args ...any) (any, error) { return s, nil }, + Context: func(cctx context.Context, args ...any) (any, error) { return s, nil }, } if s == nil { |