Bypass hidden posts in home page pagination (fix #504)

This commit is contained in:
Cotes Chung 2022-02-12 06:10:21 +08:00
parent 2b66ad0441
commit 08a993be90

View file

@ -6,7 +6,7 @@ layout: page
{% include lang.html %} {% include lang.html %}
{% assign pinned = site.posts | where: "pin", "true" %} {% assign pinned = site.posts | where: "pin", "true" %}
{% assign default = site.posts | where_exp: "item", "item.pin != true" %} {% assign default = site.posts | where_exp: "item", "item.pin != true and item.hidden != true" %}
{% assign posts = "" | split: "" %} {% assign posts = "" | split: "" %}