Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/hossainemruz/toha.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreishundo <116754122+eishundo@users.noreply.github.com>2022-11-03 20:28:31 +0300
committerGitHub <noreply@github.com>2022-11-03 20:28:31 +0300
commit76ff0e4e40c93f33908587bc3079d5e0e501b0a8 (patch)
tree927f11711eed8d7497a500902debf54d3b6a4abe
parentc3f0bd449e4d73648ff278fe3839e94f784210a4 (diff)
Fix recent-posts.html to not display search card (#687)
Co-authored-by: eishundo <eishundo@users.noreply.github.com>
-rw-r--r--layouts/partials/sections/recent-posts.html2
1 files changed, 1 insertions, 1 deletions
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 }}
<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>