{{ $currentVersion := (index (findRE "[^/]+.*?" .RelPermalink) 0) .RelPermalink }} {{ $tagSet := print $currentVersion "/tags" }} {{ if isset .Params $tagSet }}