I have the following logic to retrieve all pages with a path that matches a regex:
{{- $xVersion := index (findRE `v\d+\.\d+\.x` .RelPermalink) 0 }}
{{- $docs := where site.RegularPages ".Path" "like" (printf "%s%s%s" "/docs/" $xVersion ".*") }}
this behaves as expected locally, but fails when I attempt to deploy a preview site via netlify on github: Netlify App
11:07:56 AM: ERROR 2024/03/14 18:07:56 render of "page" failed: "/opt/build/repo/themes/containerd/layouts/docs/single.html:20:15": execute of template failed: template: docs/single.html:20:15: executing "main" at <partial "docs/dropdown.html" .>: error calling partial: "/opt/build/repo/themes/containerd/layouts/partials/docs/dropdown.html:3:13": execute of template failed: template: partials/docs/dropdown.html:3:13: executing "partials/docs/dropdown.html" at <where site.RegularPages ".Path" "like" (printf "%s%s%s" "/docs/" $xVersion ".*")>: error calling where: no such operator