From 569c4ad0c10c9604f94a0c0ee3a4688f8508044c 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 13b4006..376a509 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 98be3e9..b364f30 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 180a2f3..46fade0 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 -%} -- 2.43.0