{{ $currentVersion := getenv "CURRENT_VERSION" }}
{{ $versionString := getenv "VERSIONS" }}
{{ $versions := split $versionString "," }}
{{ $latestVersion := index $versions 0 }}

{{ if not (eq $latestVersion $currentVersion) }}
	<div class="alert-warning">
		You are looking at the docs for an older version ({{ $currentVersion }}). The latest version is <a href="https://xcfile.dev/{{$latestVersion}}">{{ $latestVersion }}</a>.
	</div>
{{ end }}
