aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/tplimpl/template_ast_transformers.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2019-01-18 17:48:19 +0000
committerBjørn Erik Pedersen <[email protected]>2019-01-20 12:42:24 +0000
commite1a66c7343db9d232749255dd9e3a58d94b86997 (patch)
treed627599de196ed8e08622226e5634cd602b08914 /tpl/tplimpl/template_ast_transformers.go
parentdb3c49d049193e0fc225fe4bdb95712c311d6615 (diff)
downloadhugo-e1a66c7343db9d232749255dd9e3a58d94b86997.tar.gz
hugo-e1a66c7343db9d232749255dd9e3a58d94b86997.zip
Fix Params case handling in the new site global
Fixes #5615
Diffstat (limited to 'tpl/tplimpl/template_ast_transformers.go')
-rw-r--r--tpl/tplimpl/template_ast_transformers.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/tpl/tplimpl/template_ast_transformers.go b/tpl/tplimpl/template_ast_transformers.go
index 1e1589308..f32b189ff 100644
--- a/tpl/tplimpl/template_ast_transformers.go
+++ b/tpl/tplimpl/template_ast_transformers.go
@@ -130,8 +130,12 @@ func (c *templateContext) paramsKeysToLower(n parse.Node) {
c.updateIdentsIfNeeded(an.Ident)
case *parse.PipeNode:
c.paramsKeysToLower(an)
+ case *parse.ChainNode:
+ // site.Params...
+ if len(an.Field) > 1 && an.Field[0] == paramsIdentifier {
+ c.updateIdentsIfNeeded(an.Field)
+ }
}
-
}
}
}