{{ $currentVersion := index (split .Page.Path "/" ) 1 }}
{{ $currentVersionDir := $currentVersion | printf "/%s"}}
{{ if and (ne $currentVersion "") (ne $currentVersion "404") }}
{{ else }}
{{ end }}
{{ if ne $currentVersion "" }}
{{ if eq $currentVersionDir site.Params.url_latest_version }}
{{else}}
{{end}}
{{ end }}