This is an automated email from the ASF dual-hosted git repository.
bowenliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kyuubi-website.git
The following commit(s) were added to refs/heads/master by this push:
new 2252f01 fix the latest release in the site (#163)
2252f01 is described below
commit 2252f011e00730fc2ce813189a22ce754de9e3b1
Author: Pm Ching <[email protected]>
AuthorDate: Mon Dec 16 22:31:36 2024 +0800
fix the latest release in the site (#163)
* fix the latest version display in the download site
* rename param releaseVersion to latestRelease
* optimize code: skipped the sorting
---------
Co-authored-by: chengpeiming <[email protected]>
---
hugo.toml | 1 +
layouts/custompage/release.html | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/hugo.toml b/hugo.toml
index 38b0947..075164e 100644
--- a/hugo.toml
+++ b/hugo.toml
@@ -337,6 +337,7 @@ defaultContentLanguage = 'en'
keepQuotes = true
[params]
+ latestRelease = '1.10.0'
releases = [ 'v1.10.0','v1.9.3', 'v1.8.3', 'v1.7.4', 'v1.6.1-incubating',
'v1.5.2-incubating', 'v1.4.1-incubating', 'v1.3.1-incubating' ]
downloadLink = 'https://www.apache.org/dyn/closer.lua/kyuubi/'
downloadLinkIncubator =
'https://www.apache.org/dyn/closer.lua/incubator/kyuubi/'
diff --git a/layouts/custompage/release.html b/layouts/custompage/release.html
index bb838f9..e769b9a 100644
--- a/layouts/custompage/release.html
+++ b/layouts/custompage/release.html
@@ -31,7 +31,7 @@
{{ if ne .Site.Language.Lang "en" }}
{{ $langVar = .Site.Language.Lang }}
{{ end }}
- {{ range first 1 (sort (where (where .Site.Pages "Section" "release")
".Params.linked" true) ".Date" "desc") }}
+ {{ range where (where (where .Site.Pages "Section" "release")
".Params.linked" true) ".File.BaseFileName" .Site.Params.latestRelease }}
<tr>
{{ $dir := print "kyuubi-" .File.BaseFileName "/" }}
{{ $source := print "apache-kyuubi-" .File.BaseFileName "-source.tgz" }}