{{ partial "google-analytics.html" . }} {{ partial "meta.html" . }} {{ block "title" . }}{{ site.Title }}{{ end }} {{ block "head" . }}{{ end }} {{ define "head" }}{{ end }} {{ partial "css.html" . }} {{- $latest := "latest" -}} {{- if eq (len site.Data.releases) 1 -}} {{- $latest = "edge" -}} {{- end -}} {{ $releases := site.Data.releases }} {{ $version := index (split .File.Path "/") 1 }} {{ $latestVersionString := printf "%s" (index $releases 1) }} {{- if eq (len $releases) 1 -}} {{- $latestVersionString = "(dev preview)" -}} {{- end -}} {{ $rank := 1 }} {{- range $index, $ver := site.Data.releases -}} {{- if eq $ver $version -}} {{ $rank = $index }} {{- end -}} {{- end -}} {{ $ancient := gt $rank 5 }} {{ $isEdge := (eq $version "edge") }} {{ $isNotLatest := (and (ne $version $latest) (ne $version $latestVersionString)) }}
{{- if $isEdge }} {{- else if $isNotLatest }}
These are the docs for an older version of OPA ({{ $version }}). Latest stable release is {{ $latestVersionString }} {{ if not $ancient }} {{ end }}
{{- end }}
{{ partial "docs/dashboard-panel.html" . }}
{{ partial "docs/navbar.html" . }}
OPA Ecosystem Edit

Integrations are ordered by the amount of linked content.

{{ $selectedIntegrations := partial "functions/sort-integrations" (dict "integrations" $.Site.Data.integrations.integrations) }} {{ partial "ecosystem-project-list" (dict "selectedIntegrations" $selectedIntegrations "integrationsData" $.Site.Data.integrations) }}
{{ if (and (not .Params.hide_feedback) (site.Params.ui.feedback.enable)) }} {{ partial "feedback.html" site.Params.ui.feedback }} {{ end }}
{{ partial "javascript.html" . }}