From 42ca3ce14faa0b96e53033c78c68e619e3ca2086 Mon Sep 17 00:00:00 2001 From: razonyang Date: Thu, 19 Oct 2023 14:14:44 +0800 Subject: [PATCH] fix: build of home layout --- layouts/partials/hb/modules/blog/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/hb/modules/blog/index.html b/layouts/partials/hb/modules/blog/index.html index 3cdd5ad6..408d9cc3 100644 --- a/layouts/partials/hb/modules/blog/index.html +++ b/layouts/partials/hb/modules/blog/index.html @@ -8,7 +8,7 @@ {{- if $featuredPages }}
{{- $pinnedPages := first 1 (where $pages ".Params.pinned" true) }} - {{- $hasPinned := and (ne $pinnedPos "list") $pinnedPages }} + {{- $hasPinned := and (ne $pinnedPos "list") (gt (len $pinnedPages) 0) }}