We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
/posts
1 parent a695d77 commit b093b52Copy full SHA for b093b52
_layouts/posts.html
@@ -5,7 +5,7 @@
5
{{ content }}
6
7
<ul class="taxonomy__index">
8
- {% 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"' %}
9
{% for year in postsInYear %}
10
<li>
11
<a href="#{{ year.name }}">
@@ -15,7 +15,7 @@
15
{% endfor %}
16
</ul>
17
18
-{% 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"' %}
19
{% for year in postsByYear %}
20
<section id="{{ year.name }}" class="taxonomy__section">
21
<h2 class="archive__subtitle">{{ year.name }}</h2>
0 commit comments