From 072d8c19f07edf906675e24a410a6e80a891424c Mon Sep 17 00:00:00 2001 From: Andrey Kartashov Date: Tue, 4 Aug 2020 21:25:38 +0700 Subject: [PATCH] remove hidden posts from `/posts` (#2625) --- _layouts/post.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_layouts/post.html b/_layouts/post.html index 57976ba63e31..769355b9dcde 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -17,7 +17,7 @@ -{% 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 %}

{{ year.name }}