Intersect broke between hugo 0.71.0 to 0.71.1

Hello,

this works fine with Hugo 0.71.0 :

{{ $related := (where (where .Site.RegularPages "Section" "blog") ".Params.tags" "intersect" .Params.tags) . | first 5 }}

With Hugo 0.71.1 I got :

ERROR 2020/05/27 22:03:58 Failed to render pages: render of "page" failed: "/home/jeff/website/layouts/blog/single.html:40:7": execute of template failed: template: blog/single.html:40:7: executing "main" at <$related := (where (where .Site.RegularPages "Section" "blog") ".Params.tags" "intersect" .Params.tags) . | first 5>: can't give argument to non-function where (where .Site.RegularPages "Section" "blog") ".Params.tags" "intersect" .Params.tags

I have seen 2 similar reports after the release, and this is is a bug fix in Go’s template package.

{{ $related := (where (where .Site.RegularPages "Section" "blog") ".Params.tags" "intersect" .Params.tags) . | first 5 }}

The error message may not be clear, but I suspect this will work:

{{ $related := where (where .Site.RegularPages "Section" "blog") ".Params.tags" "intersect" .Params.tags  | first 5 }}

Basically: What’s inside parens can never be a function and can never take arguments (as in your original example).