{{/* TODO: find a way to generate less HTML for displaying the download info */}} {{ define "title" }} Download | {{ site.Title }} {{ end }} {{ define "main" }} {{ $releases := site.Data.docs.releases }} {{ $versions := site.Data.docs.versions }} {{ $latest := index $versions 0 }}
{{ partial "hero.html" . }}
{{ partial "download/release-toggle.html" . }} {{ partial "download/version-selector.html" . }} {{ template "latest-toggler" }}
{{/* Stable releases */}} {{ range $k, $v := $releases }}
Date {{ $v.date }} License MPL 2.0 {{ $k }} release notes
{{ partial "heading.html" (dict "text" "Downloads" "level" 2) }}
{{ partial "download/download-matrix.html" (dict "version" $k) }}
{{ partial "heading.html" (dict "text" "Other methods" "level" 2) }}
{{ partial "download/links.html" . }}
{{ end }} {{/* Nightly release */}}
Date License MPL 2.0
{{ template "download-heading" (dict "text" "Download") }}
{{ partial "download/download-matrix.html" (dict "version" "nightly") }}
{{/* Heroicon: outline/exclamation */}} Nightly versions contain bleeding-edge changes that may contain bugs. Proceed with caution.
{{ template "download-heading" (dict "text" "Other methods") }}
{{ partial "download/links.html" . }}
{{ end }} {{ define "download-heading" }}

{{ .text }}

{{ end }} {{ define "latest-toggler" }} {{ end }}