~xdavidwu/xdavidwu.link

569c4ad0c10c9604f94a0c0ee3a4688f8508044c — Michael Rose 4 years ago 69be8d9
Hide hidden posts from listings (#2345)

3 files changed, 9 insertions(+), 3 deletions(-)

M _includes/documents-collection.html
M _includes/posts-category.html
M _includes/posts-tag.html
M _includes/documents-collection.html => _includes/documents-collection.html +3 -1
@@ 15,5 15,7 @@
{% endif %}

{%- for post in entries -%}
  {% include archive-single.html %}
  {%- unless post.hidden -%}
    {% include archive-single.html %}
  {%- endunless -%}
{%- endfor -%}

M _includes/posts-category.html => _includes/posts-category.html +3 -1
@@ 1,3 1,5 @@
{%- for post in site.categories[include.taxonomy] -%}
  {% include archive-single.html %}
  {%- unless post.hidden -%}
    {% include archive-single.html %}
  {%- endunless -%}
{%- endfor -%}

M _includes/posts-tag.html => _includes/posts-tag.html +3 -1
@@ 1,3 1,5 @@
{%- for post in site.tags[include.taxonomy] -%}
  {% include archive-single.html %}
  {%- unless post.hidden -%}
    {% include archive-single.html %}
  {%- endunless -%}
{%- endfor -%}