mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-18 21:11:19 +02:00
@@ -26,7 +26,7 @@ func init() {
|
||||
|
||||
ns := &internal.TemplateFuncsNamespace{
|
||||
Name: name,
|
||||
Context: func(args ...interface{}) (interface{}, error) { return ctx, nil },
|
||||
Context: func(args ...any) (any, error) { return ctx, nil },
|
||||
}
|
||||
|
||||
return ns
|
||||
|
@@ -39,10 +39,10 @@ type Namespace struct {
|
||||
}
|
||||
|
||||
// Build processes the given Resource with ESBuild.
|
||||
func (ns *Namespace) Build(args ...interface{}) (resource.Resource, error) {
|
||||
func (ns *Namespace) Build(args ...any) (resource.Resource, error) {
|
||||
var (
|
||||
r resources.ResourceTransformer
|
||||
m map[string]interface{}
|
||||
m map[string]any
|
||||
targetPath string
|
||||
err error
|
||||
ok bool
|
||||
@@ -58,7 +58,7 @@ func (ns *Namespace) Build(args ...interface{}) (resource.Resource, error) {
|
||||
}
|
||||
|
||||
if targetPath != "" {
|
||||
m = map[string]interface{}{"targetPath": targetPath}
|
||||
m = map[string]any{"targetPath": targetPath}
|
||||
}
|
||||
|
||||
return ns.client.Process(r, m)
|
||||
|
Reference in New Issue
Block a user