{{ $currentPage := . }} {{ $currentVersion := (index (findRE "[^/]+.*?" .RelPermalink) 0) }}