{{ $productPathData := findRE "[^/]+.*?" .RelPermalink }} {{ $product := index $productPathData 0 | default "" }} {{ $currentVersion := index $productPathData 1 | default ""}} {{ $latestFlux := .Site.Data.products.flux.latest }} {{ $fluxPath := print "/flux/" $latestFlux "/" }} {{ $isFluxLatest := cond (in .RelPermalink $fluxPath) true false }} {{ $isResources := cond (eq $product "resources") true false}} {{ $searchTag := print $product "-" $currentVersion }} {{ if not .IsHome }} {{ if or (eq $currentVersion (index $.Site.Data.products $product).latest) (or (eq $product "platform") (eq $product "resources")) (in $currentVersion "cloud") }} {{ end }} {{ if and (ne $product "platform") (ne $product "resources") (ne $currentVersion "") }} {{ end }} {{ end }} {{ if $isFluxLatest }} {{ end }} {{ if $isResources }} {{ end }}