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 4c077e8 Fix news archive page
4c077e8 is described below
commit 4c077e8f49a2c3a76b286737528cadfa9b917bd2
Author: Mike Walch <[email protected]>
AuthorDate: Wed Sep 6 15:59:03 2017 -0400
Fix news archive page
---
pages/news.md | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/pages/news.md b/pages/news.md
index 912bcb6..9513335 100644
--- a/pages/news.md
+++ b/pages/news.md
@@ -5,9 +5,10 @@ redirect_from: /blog/
---
<div>
-{% assign header_year = site.posts[0].date | date: "%Y" %}
+{% assign visible_posts = site.posts | where:"draft",false %}
+{% assign header_year = visible_posts[0].date | date: "%Y" %}
<h3>{{header_year}}</h3>
-{% for post in site.posts %}
+{% for post in visible_posts %}
{% assign post_year = post.date | date: "%Y" %}
{% if post_year != header_year %}
{% assign header_year = post_year %}
--
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].