This is an automated email from the ASF dual-hosted git repository.

adoroszlai pushed a commit to branch asf-site-source
in repository https://gitbox.apache.org/repos/asf/ratis.git


The following commit(s) were added to refs/heads/asf-site-source by this push:
     new afec8107e RATIS-2366. Downloads page shows fewer than expected items 
(#1324)
afec8107e is described below

commit afec8107e99a692d29579fa53ce45feb9ad8e4ea
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Fri Dec 5 15:18:40 2025 +0100

    RATIS-2366. Downloads page shows fewer than expected items (#1324)
---
 layouts/custompage/downloads.html | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/layouts/custompage/downloads.html 
b/layouts/custompage/downloads.html
index 08e331e15..b15261f85 100644
--- a/layouts/custompage/downloads.html
+++ b/layouts/custompage/downloads.html
@@ -40,8 +40,9 @@ The binaries are also uploaded to the maven central for 
convenience. (See the ge
     </tr>
   </thead>
 
-    {{range first 5 (where .Site.Pages ".Params.type" "release")}}
-    {{ if .Params.linked }}
+    {{ $releases := where .Site.Pages ".Params.type" "eq" "release" }}
+    {{ $linked := where $releases ".Params.linked" "eq" true }}
+    {{ range first 5 $linked }}
      <tr>
        <td>{{.File.BaseFileName }}</td>
        <td>{{ time.Format "2006 Jan 2" .Params.date }}</td>
@@ -60,7 +61,6 @@ The binaries are also uploaded to the maven central for 
convenience. (See the ge
          </td>
      </tr>
     {{end}}
-    {{end}}
   </table>
 </p>
 

Reply via email to