소스 검색

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

Co-authored-by: eishundo <eishundo@users.noreply.github.com>
eishundo 2 년 전
부모
커밋
76ff0e4e40
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      layouts/partials/sections/recent-posts.html

+ 1 - 1
layouts/partials/sections/recent-posts.html

@@ -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>