Skip to content

Commit 4bf72cf

Browse files
authoredMar 4, 2020
Hide hidden posts from listings (mmistakes#2345)
1 parent 31dff63 commit 4bf72cf

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed
 

‎_includes/documents-collection.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,7 @@
1515
{% endif %}
1616

1717
{%- for post in entries -%}
18-
{% include archive-single.html %}
18+
{%- unless post.hidden -%}
19+
{% include archive-single.html %}
20+
{%- endunless -%}
1921
{%- endfor -%}

‎_includes/posts-category.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
{%- for post in site.categories[include.taxonomy] -%}
2-
{% include archive-single.html %}
2+
{%- unless post.hidden -%}
3+
{% include archive-single.html %}
4+
{%- endunless -%}
35
{%- endfor -%}

‎_includes/posts-tag.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
{%- for post in site.tags[include.taxonomy] -%}
2-
{% include archive-single.html %}
2+
{%- unless post.hidden -%}
3+
{% include archive-single.html %}
4+
{%- endunless -%}
35
{%- endfor -%}

0 commit comments

Comments
 (0)
Please sign in to comment.