Don't show search cards in search result (#690)
Signed-off-by: hossainemruz <hossainemruz@gmail.com> Signed-off-by: hossainemruz <hossainemruz@gmail.com>
This commit is contained in:
parent
76ff0e4e40
commit
a78b031ca9
1 changed files with 1 additions and 1 deletions
|
@ -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 -}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue