diff options
author | Emruz Hossain <hossainemruz@gmail.com> | 2022-11-06 20:17:30 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-06 20:17:30 +0300 |
commit | a78b031ca96f9ec2dbc2be1df1244775f4b09d2c (patch) | |
tree | 645c66c90138d955534260592dcaf892220f7ab0 | |
parent | 76ff0e4e40c93f33908587bc3079d5e0e501b0a8 (diff) |
Don't show search cards in search result (#690)
Signed-off-by: hossainemruz <hossainemruz@gmail.com>
Signed-off-by: hossainemruz <hossainemruz@gmail.com>
-rw-r--r-- | layouts/_default/index.json | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/index.json b/layouts/_default/index.json index c29397c..1684169 100644 --- a/layouts/_default/index.json +++ b/layouts/_default/index.json @@ -1,5 +1,5 @@ {{- $.Scratch.Add "index" slice -}} -{{- range .Site.RegularPages -}} +{{- range (where .Site.RegularPages "Layout" "!=" "search") -}} {{- $.Scratch.Add "index" (dict "title" .Title "hero" (partial "helpers/get-hero.html" .) "date" (.Date.Format "January 2, 2006") "summary" .Summary "tags" .Params.tags "categories" .Params.categories "contents" .Plain "permalink" .Permalink) -}} {{- end -}} {{- $.Scratch.Get "index" | jsonify -}} |