{{- range where .Site.Sections "Params.product" $currentProduct -}}
v{{- .Params.version -}}
{{- end -}}
{{- range where .Site.Pages "Section" "version" -}}
{{- if eq .Params.product $currentProduct -}}
{{- if .Params.subsection -}}
v{{- .Params.version -}}
{{- end -}}
{{- end -}}
{{- end -}}