mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
all: Run modernize -fix ./...
This commit is contained in:
@@ -31,7 +31,7 @@ func init() {
|
||||
f := func(d *deps.Deps) *internal.TemplateFuncsNamespace {
|
||||
ns := &internal.TemplateFuncsNamespace{
|
||||
Name: name,
|
||||
Context: func(ctx context.Context, args ...interface{}) (interface{}, error) {
|
||||
Context: func(ctx context.Context, args ...any) (any, error) {
|
||||
v := tpl.Context.Page.Get(ctx)
|
||||
if v == nil {
|
||||
// The multilingual sitemap does not have a page as its context.
|
||||
|
Reference in New Issue
Block a user