mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
f3c74c9db4
`where` template function's internal condition check function doesn't check boolean values and always returns `false` silently. This adds missing boolean value comparison to the function. `where Values ".Param.key" true` like clause can be used. Only "=", "==", "eq", "!=", "<>", "ne" operators are allowed to be used with a boolean value. If an other operator is passed with it, the condition check function returns `false` like before. |
||
---|---|---|
.. | ||
template.go | ||
template_embedded.go | ||
template_funcs.go | ||
template_funcs_test.go | ||
template_resources.go | ||
template_resources_test.go | ||
template_test.go |