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:
parent
cf5b519963
commit
ff2c93af1c
4 changed files with 27 additions and 11 deletions
|
@ -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 }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue