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

zregvart pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-website.git


The following commit(s) were added to refs/heads/master by this push:
     new d20afc4  fix: make sure RC versions are not promoted
d20afc4 is described below

commit d20afc482333647cffc4dcefb16217d5209edb32
Author: Zoran Regvart <[email protected]>
AuthorDate: Tue Mar 3 21:26:52 2020 +0100

    fix: make sure RC versions are not promoted
    
    On the downloads page we need to make sure that the RC versions are not
    included in the last three releases. Currently this would exclude 2.25.x
    which we still support as the latest release on 2.x.
---
 content/releases/release-3.0.0-RC1.md | 1 +
 content/releases/release-3.0.0-RC2.md | 1 +
 content/releases/release-3.0.0-RC3.md | 1 +
 layouts/download/download.html        | 4 +---
 4 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/content/releases/release-3.0.0-RC1.md 
b/content/releases/release-3.0.0-RC1.md
index afeebd5..e333f04 100644
--- a/content/releases/release-3.0.0-RC1.md
+++ b/content/releases/release-3.0.0-RC1.md
@@ -3,6 +3,7 @@ date: 2019-09-01
 draft: false 
 type: release-note
 version: 3.0.0-RC1
+rc: true
 title: "Release 3.0.0-RC1"
 preview: "First release candidate for 3.0.0"
 apiBreaking: ""
diff --git a/content/releases/release-3.0.0-RC2.md 
b/content/releases/release-3.0.0-RC2.md
index fdd2ac8..5687c10 100644
--- a/content/releases/release-3.0.0-RC2.md
+++ b/content/releases/release-3.0.0-RC2.md
@@ -3,6 +3,7 @@ date: 2019-10-06
 draft: false 
 type: release-note
 version: 3.0.0-RC2
+rc: true
 title: "Release 3.0.0-RC2"
 preview: "Second release candidate for 3.0.0"
 apiBreaking: ""
diff --git a/content/releases/release-3.0.0-RC3.md 
b/content/releases/release-3.0.0-RC3.md
index 3e2140b..a84de02 100644
--- a/content/releases/release-3.0.0-RC3.md
+++ b/content/releases/release-3.0.0-RC3.md
@@ -3,6 +3,7 @@ date: 2019-10-25
 draft: false 
 type: release-note
 version: 3.0.0-RC3
+rc: true
 title: "Release 3.0.0-RC3"
 preview: "Third release candidate for 3.0.0"
 apiBreaking: ""
diff --git a/layouts/download/download.html b/layouts/download/download.html
index 99cf8af..9bd2e47 100644
--- a/layouts/download/download.html
+++ b/layouts/download/download.html
@@ -10,7 +10,7 @@
             <p>Apache Camel community provides support for the latest three 
major versions. Latest version receives new features, next two supported 
versions receive only bug fixes.</p>
 
             <ul>
-            {{ $releases := ((where .Site.Pages "Type" "release-note").ByParam 
"version").Reverse }}
+            {{ $releases := ((where (where .Site.Pages "Type" "release-note") 
".Params.rc" "ne" "true").ByParam "version").Reverse }}
             {{ $major := "" }}
             {{ $cnt := 1 }}
             {{ range $releases }}
@@ -27,7 +27,6 @@
 
             <h3>Binary Distribution</h3>
 
-            {{ $releases := ((where .Site.Pages "Type" "release-note").ByParam 
"version").Reverse }}
             {{ $major := "" }}
             {{ $cnt := 1 }}
             <table class="tableblock frame-all grid-all stretch">
@@ -67,7 +66,6 @@
 
             <h3>Source Distribution</h3>
 
-            {{ $releases := ((where .Site.Pages "Type" "release-note").ByParam 
"version").Reverse }}
             {{ $major := "" }}
             {{ $cnt := 1 }}
             <table class="tableblock frame-all grid-all stretch">

Reply via email to