From 08a993be90d71dbd945fafc4d549a32d0d9b3386 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Sat, 12 Feb 2022 06:10:21 +0800 Subject: [PATCH] Bypass hidden posts in home page pagination (fix #504) --- _layouts/home.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_layouts/home.html b/_layouts/home.html index b43689c..7963f2d 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -6,7 +6,7 @@ layout: page {% include lang.html %} {% 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: "" %}