diff options
author | Bjørn Erik Pedersen <[email protected]> | 2019-11-21 19:45:03 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2019-11-22 18:41:40 +0100 |
commit | cd07e6d57b158a76f812e8c4c9567dbc84f57939 (patch) | |
tree | 2b16255aabae10b38d49f672843072f895fbf2f4 /tpl/tplimpl/template_ast_transformers.go | |
parent | 628efd6e293d27984a3f5ba33522f8edd19d69d6 (diff) | |
download | hugo-cd07e6d57b158a76f812e8c4c9567dbc84f57939.tar.gz hugo-cd07e6d57b158a76f812e8c4c9567dbc84f57939.zip |
Fix GetPage Params case issue
Fixes #5946
Diffstat (limited to 'tpl/tplimpl/template_ast_transformers.go')
-rw-r--r-- | tpl/tplimpl/template_ast_transformers.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tpl/tplimpl/template_ast_transformers.go b/tpl/tplimpl/template_ast_transformers.go index fb0728a63..d257d7a31 100644 --- a/tpl/tplimpl/template_ast_transformers.go +++ b/tpl/tplimpl/template_ast_transformers.go @@ -508,8 +508,7 @@ func (d decl) resolveVariables(idents []string) ([]string, bool) { } if !d.isKeyword(replacement) { - // This can not be .Site.Params etc. - return nil, false + continue } replacement = strings.TrimPrefix(replacement, ".") |