diff --git a/layouts/shortcodes/skew.html b/layouts/shortcodes/skew.html index 901a745ee14..de447aba0c2 100644 --- a/layouts/shortcodes/skew.html +++ b/layouts/shortcodes/skew.html @@ -77,6 +77,25 @@ {{- $currentVersionAddMinor -}} {{- end -}} + +{{- if eq $version "currentPatchVersion" -}} + {{- $seenPatchVersionInfoCount := 0 }} + {{- range $releaseInfo := .Site.Data.releases.schedule.schedules -}} + {{- if eq $currentVersion ( printf "%.2f" $releaseInfo.release ) -}} + {{- range $patchReleaseInfo := $releaseInfo.previousPatches -}} + {{- if eq $seenPatchVersionInfoCount 0 -}} + {{- $patchReleaseInfo.release -}} + {{- end -}} + {{- $seenPatchVersionInfoCount = add $seenPatchVersionInfoCount 1 -}} + {{- end -}} + {{- end -}} + {{- end -}} + {{- if eq $seenPatchVersionInfoCount 0 -}} + + {{- printf "%.2f.0" $currentVersion -}} + {{- end -}} +{{- end -}} +