From 0f1595affbd5c37d11725a7c4990045c793aa287 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Tue, 11 Aug 2020 18:14:28 +0800 Subject: [PATCH] Improved the pin for posts (#99). --- _layouts/home.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_layouts/home.html b/_layouts/home.html index c4ae3422ba3..76c66d5f80d 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -9,7 +9,7 @@ {% assign pinned = site.posts | where_exp: "item", "item.pin == true" %} -{% assign default = site.posts | where_exp: "item", "item.pin == nil " %} +{% assign default = site.posts | where_exp: "item", "item.pin != true" %} {% assign posts = "" | split: "" %} @@ -51,7 +51,7 @@

{{ post.title }}

- {% if post.pin %} + {% if post.pin == true %} {% endif %}