Forráskód Böngészése

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

Co-authored-by: eishundo <eishundo@users.noreply.github.com>
eishundo 2 éve
szülő
commit
76ff0e4e40
1 módosított fájl, 1 hozzáadás és 1 törlés
  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>