User-agent: *
{{- $byReleaseVersion := where (.Pages.ByParam "release_version") "ne" nil -}}
{{ $latestRelease := index .Site.Params.active_releases 0 -}}
{{ range $byReleaseVersion -}}
    {{ $page := . -}}
    {{ with $page.Params.release_version -}}
        {{ if ne . $latestRelease }}
Disallow: {{ $page.RelPermalink -}}
        {{ end -}}
    {{- end -}}
{{- end }}
