diff options
Diffstat (limited to 'tpl/time/init.go')
-rw-r--r-- | tpl/time/init.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tpl/time/init.go b/tpl/time/init.go index 4bb2ddf67..583dacd4a 100644 --- a/tpl/time/init.go +++ b/tpl/time/init.go @@ -14,6 +14,7 @@ package time import ( + "context" "errors" "github.com/gohugoio/hugo/deps" @@ -32,7 +33,7 @@ func init() { ns := &internal.TemplateFuncsNamespace{ Name: name, - Context: func(args ...any) (any, error) { + Context: func(cctx context.Context, args ...any) (any, error) { // Handle overlapping "time" namespace and func. // // If no args are passed to `time`, assume namespace usage and |