remove hidden posts from /posts
(#2625)
This commit is contained in:
parent
a695d7728f
commit
b093b52074
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ layout: archive
|
||||||
{{ content }}
|
{{ content }}
|
||||||
|
|
||||||
<ul class="taxonomy__index">
|
<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 %}
|
{% for year in postsInYear %}
|
||||||
<li>
|
<li>
|
||||||
<a href="#{{ year.name }}">
|
<a href="#{{ year.name }}">
|
||||||
|
@ -15,7 +15,7 @@ layout: archive
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</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 %}
|
{% for year in postsByYear %}
|
||||||
<section id="{{ year.name }}" class="taxonomy__section">
|
<section id="{{ year.name }}" class="taxonomy__section">
|
||||||
<h2 class="archive__subtitle">{{ year.name }}</h2>
|
<h2 class="archive__subtitle">{{ year.name }}</h2>
|
||||||
|
|
Loading…
Reference in a new issue