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 Mar 4, 2020
1 parent 11effeb commit bfe2395
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 bfe2395

Please sign in to comment.