diff --git a/_layouts/posts.html b/_layouts/posts.html
index 76d25f9d..95072ce0 100644
--- a/_layouts/posts.html
+++ b/_layouts/posts.html
@@ -5,7 +5,7 @@ layout: archive
{{ content }}
- {% assign postsInYear = site.posts | group_by_exp: 'post', 'post.date | date: "%Y"' %}
+ {% assign postsInYear = site.posts | where_exp: "item", "item.hidden != true" | group_by_exp: 'post', 'post.date | date: "%Y"' %}
{% for year in postsInYear %}
-
@@ -15,7 +15,7 @@ layout: archive
{% endfor %}
-{% assign postsByYear = site.posts | group_by_exp: 'post', 'post.date | date: "%Y"' %}
+{% assign postsByYear = site.posts | where_exp: "item", "item.hidden != true" | group_by_exp: 'post', 'post.date | date: "%Y"' %}
{% for year in postsByYear %}