{{- $releasesUrl := "https://api.github.com/repos/containerd/containerd/releases?per_page=50&page=1" }} {{- $downloadUrl := "https://github.com/containerd/containerd/releases/download" }} {{- $releases := getJSON $releasesUrl }} {{- $latest := .Site.Params.versions.latest }}

Version | Copy link | Direct download
--- | --- | ---
{{- range $releases }} {{- $name := .name }} {{- $latestTag := printf "v%s" $latest }} {{- $githubUrl := .html_url }} {{- $tag := .tag_name }} {{- $asset := (index .assets 0).name }} {{- $binariesUrl := printf "%s/%s/%s" $downloadUrl $tag $asset }} {{- $zipUrl := printf "https://github.com/containerd/containerd/archive/%s.zip" $tag }} {{- $tarUrl := printf "https://github.com/containerd/containerd/archive/%s.tar.gz" $tag }} {{- $isLatest := eq $tag $latestTag }}
{{ $name }} {{- if $isLatest }} LATEST {{- end }} | Binaries (.tar.gz) Source (.zip) Source (.tar.gz) | Binaries (.tar.gz) Source (.zip) Source (.tar.gz)
{{- end }}