Procházet zdrojové kódy

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

Co-authored-by: eishundo <eishundo@users.noreply.github.com>
eishundo před 2 roky
rodič
revize
76ff0e4e40
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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>