Use changelogs/release.yaml for the version number source everywhere (#3310)

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
This commit is contained in:
Andrew Morgan 2021-08-10 18:05:28 +01:00 committed by Richard van der Hoff
parent cf5b519963
commit ff2c93af1c
4 changed files with 27 additions and 11 deletions

View file

@ -45,8 +45,10 @@
{{ $status := .Site.Params.version.status }}
{{ if ne $status "unstable"}}
{{ $ret = .Site.Params.version.number }}
{{ $ret = delimit (slice "version" $ret) " " }}
{{ $path := path.Join "changelogs" }}
{{/* produces a string similar to "version v1.5" */}}
{{ $ret = delimit (slice "version v" .Site.Params.version.major "." .Site.Params.version.minor) "" }}
{{ end }}
{{ return $ret }}