{{ if (findRE " {{ end }} {{ $currentVersion := index (split .Page.File.Dir "/" ) 0 }} {{ $currentVersionDir := $currentVersion | printf "/%s"}} {{ if ne $currentVersion "" }} {{ else }} {{ end }} {{ if ne $currentVersion "" }} {{ if eq $currentVersionDir site.Params.url_latest_version }} {{else}} {{end}} {{ end }}