From 0f6d544b3b8ee3a65969599ae9e2be125779e152 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 13b4006ea0be..376a509e3e49 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 98be3e96d254..b364f30e94e5 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 180a2f315d25..46fade02a01f 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 -%}