{{ $title := .Title }} {{ $desc := .Description }} {{ $src := printf "https://github.com/kedacore/keda-docs/blob/main/content/%s" .File.Path }} {{ $availability := .Params.availability }} {{ $maintainer := .Params.maintainer }} {{ $isScaler := eq .CurrentSection.Title "Scalers" }} {{ $isSectionRoot := eq .File.BaseFileName "_index" }} {{ $version := index (split .File.Path "/") 1 }} {{ $latest := index (index site.Params.versions .Section) 0 }} {{ $isLatest := eq $version $latest }} {{ $isNextVersion := not (in (index site.Params.versions .Section) $version) -}}

{{ $title }} {{ if $isLatest }} Latest {{ else if not $isNextVersion }} {{ $url := replaceRE $version $latest .RelPermalink }} Click here for latest {{ end }}

{{ with $desc }}

{{ . }}

{{ end }}

{{ with $availability }} Availability: {{ . }} {{ end }} {{ with $maintainer }} Maintainer: {{ . }} {{ end }} {{ if and $isScaler (not $isSectionRoot) }} {{ $url := printf "https://github.com/kedacore/keda/blob/main/pkg/scalers/%s.go" .Params.go_file }} {{ end }}

{{ partial "doc-version-selector.html" . }} Suggest a change