{{- $version := index (split $.Page.File.Path "/") 1 -}}
{{- if (eq $version "edge") -}}
latest-istio
{{- else -}}
{{- strings.TrimPrefix "v" $version -}}
$version-istio
{{- end -}}

{{- $version := index (split $.Page.File.Path "/") 1 -}}
{{- if or (eq $version "edge") (eq $version "latest") -}}
latest-istio
{{- else -}}
{{- strings.TrimPrefix "v" $version -}}
$version-istio
{{- end -}}

Fix opa-istio image version for latest version of the docs
docs: Fix opa-istio image version for latest version of the docs

Since the url for the latest released version of the docs does not contain the OPA version, this change updates the shortcode to use the latest-istio tag for the opa-istio image for latest and edge versions of the OPA docs.

Signed-off-by: Ashutosh Narkar <334e9094b46d3151817f829cebfa78d0453b0333@gmail.com>
