{{ $latest_version := .Site.Params.url_latest_version }} {{ $current_version := .Section | printf "/%s" }} {{ $latest_doc := partial "doc_latest_version.html" . }} {{ if .FirstSection.Params.prerelease }} {{ $color := "info" }}
{{ else if ne $latest_version $current_version }} {{ $color := "warning" }} {{ end }}