Skip to content

Commit

Permalink
remove hidden posts from /posts (mmistakes#2625)
Browse files Browse the repository at this point in the history
  • Loading branch information
amkartashov authored Aug 4, 2020
1 parent e6a556b commit e899b2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _layouts/posts.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{{ content }}

<ul class="taxonomy__index">
{% assign postsInYear = site.posts | group_by_exp: 'post', 'post.date | date: "%Y"' %}
{% assign postsInYear = site.posts | where_exp: "item", "item.hidden != true" | group_by_exp: 'post', 'post.date | date: "%Y"' %}
{% for year in postsInYear %}
<li>
<a href="#{{ year.name }}">
Expand All @@ -15,7 +15,7 @@
{% endfor %}
</ul>

{% assign postsByYear = site.posts | group_by_exp: 'post', 'post.date | date: "%Y"' %}
{% assign postsByYear = site.posts | where_exp: "item", "item.hidden != true" | group_by_exp: 'post', 'post.date | date: "%Y"' %}
{% for year in postsByYear %}
<section id="{{ year.name }}" class="taxonomy__section">
<h2 class="archive__subtitle">{{ year.name }}</h2>
Expand Down

0 comments on commit e899b2d

Please sign in to comment.