accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mwa...@apache.org
Subject [accumulo-website] branch master updated: Fix release archive page
Date Wed, 06 Sep 2017 19:50:41 GMT
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
     new 1ac3e8f  Fix release archive page
1ac3e8f is described below

commit 1ac3e8f7620ef602444d8e8ff816349c869d8d2f
Author: Mike Walch <mwalch@apache.org>
AuthorDate: Wed Sep 6 15:47:09 2017 -0400

    Fix release archive page
---
 pages/release.md | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/pages/release.md b/pages/release.md
index e198b12..e31e9c2 100644
--- a/pages/release.md
+++ b/pages/release.md
@@ -8,9 +8,11 @@ redirect_from:
 
 <div>
 <hr>
-{% assign header_year = site.categories.release[0].date | date: "%Y" %}
+
+{% assign visible_releases = site.categories.release | where:"draft",false %}
+{% assign header_year = visible_releases[0].date | date: "%Y" %}
 <h3>{{header_year}}</h3>
-{% for release in site.categories.release %}
+{% for release in visible_releases %}
   {% assign current_release_year = release.date | date: "%Y" %}
   {% if current_release_year != header_year %}
     {% assign header_year = current_release_year %}

-- 
To stop receiving notification emails like this one, please contact
['"commits@accumulo.apache.org" <commits@accumulo.apache.org>'].

Mime
View raw message