~xdavidwu/xdavidwu.link

0ffe61aa3474c25d0f1fd8e59f9fa046d94732bd — Andrey Kartashov 4 years ago 5cbb0e1
remove hidden posts from `/posts` (#2625)

1 files changed, 2 insertions(+), 2 deletions(-)

M _layouts/posts.html
M _layouts/posts.html => _layouts/posts.html +2 -2
@@ 5,7 5,7 @@ layout: archive
{{ 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 }}">


@@ 15,7 15,7 @@ layout: archive
  {% 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>