{{ define "title" }} {{ .Title }} | {{ site.Title }} {{ end }} {{ define "main" }} {{ $version := .File.BaseFileName }} {{ $release := index site.Data.docs.releases $version }} {{ $highlights := where (where site.RegularPages "Section" "highlights") ".Params.release" "eq" $version }} {{ $groups := dict "enhancement" "enhancements" "feat" "new features" "fix" "bug fixes"}}
{{ partial "hero.html" . }}
{{ with $release.codename }}

Code name {{ . }}

{{ end }} {{ with $release.description }}
{{ . | markdownify }}
{{ end }} {{ with $highlights }}
{{ partial "heading.html" (dict "text" "Highlights" "level" 2) }}
{{ range . }} {{ .Render "li" }} {{ end }}
{{ end }} {{ with $release.whats_next }}
{{ partial "heading.html" (dict "text" "What's next" "level" 2) }}
{{ range . }}
{{ .title }}
{{ .description | markdownify }}
{{ end }}
{{ end }} {{ with $release.commits }} {{ if gt (len $release.commits) 0 }}
{{ partial "heading.html" (dict "text" "Changelog" "level" 2) }}
{{ range $k, $v := $groups }} {{ $commits := where $release.commits ".type" "eq" $k }} {{ if $commits }} {{ $numCommits := len $commits }} {{ $heading := printf "%d %s" $numCommits $v }}
{{ partial "heading.html" (dict "text" $heading "level" 3 "icon" false) }}
{{ range $commits }} {{ template "commit" . }} {{ end }}
{{ end }} {{ end }}
{{ end }} {{ end }}
{{ partial "heading.html" (dict "text" (print "Download Version " $version) "level" 2) }}
{{ partial "download/download-matrix.html" (dict "version" $version) }}
{{ end }} {{ define "commit" }} {{/* Scopes */}} {{ range .scopes }} {{ partial "badge.html" (dict "word" . "color" "blue") }} {{ end }} {{/* Description */}} {{ .description | markdownify }} {{/* Pull request chip */}} {{ with .pr_number }} {{ $link := printf "https://github.com/vectordotdev/vector/pull/%v" . }} {{ . }} {{ end }} {{ end }} {{ define "below" }} {{ partial "releases/pagination.html" . }} {{ end }}