Fix recent-posts.html to not display search card (#687)

Co-authored-by: eishundo <eishundo@users.noreply.github.com>
This commit is contained in:
eishundo 2022-11-03 17:28:31 +00:00 committed by GitHub
parent c3f0bd449e
commit 76ff0e4e40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,7 +19,7 @@
{{ end }}
<div class="container">
<div class="row" id="recent-post-cards">
{{ 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 }}
</div>