We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
/posts
1 parent 8c677e4 commit 072d8c1Copy full SHA for 072d8c1
_layouts/post.html
@@ -17,7 +17,7 @@
17
</div>
18
19
<ul class="taxonomy__index">
20
- {% 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"' %}
21
{% for year in postsInYear %}
22
<li>
23
<a href="#{{ year.name }}">
@@ -27,7 +27,7 @@
27
{% endfor %}
28
</ul>
29
30
-{% 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"' %}
31
{% for year in postsByYear %}
32
<section id="{{ year.name }}" class="taxonomy__section">
33
<h2 class="archive__subtitle">{{ year.name }}</h2>
0 commit comments