Skip to content

Commit

Permalink
Hide hidden posts from listings (mmistakes#2345)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmistakes authored and jesuswasrasta committed Jul 8, 2020
1 parent 22925a0 commit 43f1033
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion _includes/documents-collection.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,7 @@
{% endif %}

{%- for post in entries -%}
{% include archive-single.html %}
{%- unless post.hidden -%}
{% include archive-single.html %}
{%- endunless -%}
{%- endfor -%}
4 changes: 3 additions & 1 deletion _includes/posts-category.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{%- for post in site.categories[include.taxonomy] -%}
{% include archive-single.html %}
{%- unless post.hidden -%}
{% include archive-single.html %}
{%- endunless -%}
{%- endfor -%}
4 changes: 3 additions & 1 deletion _includes/posts-tag.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{%- for post in site.tags[include.taxonomy] -%}
{% include archive-single.html %}
{%- unless post.hidden -%}
{% include archive-single.html %}
{%- endunless -%}
{%- endfor -%}

0 comments on commit 43f1033

Please sign in to comment.