Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tpl
diff options
context:
space:
mode:
Diffstat (limited to 'tpl')
-rw-r--r--tpl/resources/resources.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/tpl/resources/resources.go b/tpl/resources/resources.go
index fd0ffc5ec..be10510f2 100644
--- a/tpl/resources/resources.go
+++ b/tpl/resources/resources.go
@@ -299,6 +299,9 @@ func (ns *Namespace) resolveArgs(args []interface{}) (resources.ResourceTransfor
r, ok := args[1].(resources.ResourceTransformer)
if !ok {
+ if _, ok := args[1].(map[string]interface{}); !ok {
+ return nil, nil, fmt.Errorf("no Resource provided in transformation")
+ }
return nil, nil, fmt.Errorf("type %T not supported in Resource transformations", args[0])
}