Skip to content

Commit

Permalink
Fix download page version sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
pan3793 committed Apr 26, 2024
1 parent d43e2f1 commit 09cb496
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/custompage/release.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ <h2>{{ i18n "the-latest-release" }}</h2>
{{ if ne .Site.Language.Lang "en" }}
{{ $langVar = .Site.Language.Lang }}
{{ end }}
{{range first 1 (where (where .Site.Pages "Section" "release") ".Params.linked" true) }}
{{ range first 1 (sort (where (where .Site.Pages "Section" "release") ".Params.linked" true) ".File.BaseFileName" "desc") }}
<tr>
{{ $dir := print "kyuubi-" .File.BaseFileName "/" }}
{{ $source := print "apache-kyuubi-" .File.BaseFileName "-source.tgz" }}
Expand Down Expand Up @@ -75,7 +75,7 @@ <h2>{{ i18n "all-archived-releases"}} </h2>
</div>
<table class="ui selectable celled table">
{{ partial "release_table_head.html" .}}
{{ range (where (where .Site.Pages "Section" "release") ".Params.linked" true) }}
{{ range sort (where (where .Site.Pages "Section" "release") ".Params.linked" true) ".File.BaseFileName" "desc" }}
<tr>
{{ $dir := print "kyuubi-" .File.BaseFileName "/" }}
{{ $source := print "apache-kyuubi-" .File.BaseFileName "-source.tgz" }}
Expand Down

0 comments on commit 09cb496

Please sign in to comment.