From 76ff0e4e40c93f33908587bc3079d5e0e501b0a8 Mon Sep 17 00:00:00 2001 From: eishundo <116754122+eishundo@users.noreply.github.com> Date: Thu, 3 Nov 2022 17:28:31 +0000 Subject: [PATCH] Fix recent-posts.html to not display search card (#687) Co-authored-by: eishundo --- layouts/partials/sections/recent-posts.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/sections/recent-posts.html b/layouts/partials/sections/recent-posts.html index 1d7e566..bb1bc40 100644 --- a/layouts/partials/sections/recent-posts.html +++ b/layouts/partials/sections/recent-posts.html @@ -19,7 +19,7 @@ {{ end }}
- {{ range first $numShow (where site.RegularPages.ByDate.Reverse "Type" "in" "posts" )}} + {{ range first $numShow (where (where site.RegularPages.ByDate.Reverse "Type" "posts" ) "Layout" "!=" "search") }} {{ partial "cards/recent-post.html" . }} {{ end }}