From 4bf72cf73f23cc20419d4c173a3908c47f5febc1 Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Wed, 4 Mar 2020 16:09:24 -0500 Subject: [PATCH] Hide hidden posts from listings (#2345) --- _includes/documents-collection.html | 4 +++- _includes/posts-category.html | 4 +++- _includes/posts-tag.html | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/_includes/documents-collection.html b/_includes/documents-collection.html index 13b4006e..376a509e 100644 --- a/_includes/documents-collection.html +++ b/_includes/documents-collection.html @@ -15,5 +15,7 @@ {% endif %} {%- for post in entries -%} - {% include archive-single.html %} + {%- unless post.hidden -%} + {% include archive-single.html %} + {%- endunless -%} {%- endfor -%} diff --git a/_includes/posts-category.html b/_includes/posts-category.html index 98be3e96..b364f30e 100644 --- a/_includes/posts-category.html +++ b/_includes/posts-category.html @@ -1,3 +1,5 @@ {%- for post in site.categories[include.taxonomy] -%} - {% include archive-single.html %} + {%- unless post.hidden -%} + {% include archive-single.html %} + {%- endunless -%} {%- endfor -%} diff --git a/_includes/posts-tag.html b/_includes/posts-tag.html index 180a2f31..46fade02 100644 --- a/_includes/posts-tag.html +++ b/_includes/posts-tag.html @@ -1,3 +1,5 @@ {%- for post in site.tags[include.taxonomy] -%} - {% include archive-single.html %} + {%- unless post.hidden -%} + {% include archive-single.html %} + {%- endunless -%} {%- endfor -%}