bowenliang123 commented on code in PR #163:
URL: https://github.com/apache/kyuubi-website/pull/163#discussion_r1883567786


##########
layouts/custompage/release.html:
##########
@@ -31,7 +31,7 @@ <h2>{{ i18n "the-latest-release" }}</h2>
     {{ 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 first 1 (sort (where (where (where .Site.Pages "Section" 
"release") ".Params.linked" true) ".File.BaseFileName" 
.Site.Params.releaseVersion  ) ".Date" "desc") }}

Review Comment:
   Is the sorting could be skipped? Since only one item is retrieved with 
latestRelease filtered.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to