diff options
-rw-r--r-- | layouts/partials/search.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/search.html b/layouts/partials/search.html index 5f49a64..5fd8d33 100644 --- a/layouts/partials/search.html +++ b/layouts/partials/search.html @@ -16,7 +16,7 @@ <div class="modal-body"> <div class="no-result text-color-light text-center">{{ i18n "global.posts_found.zero" }}</div> <div class="results"> - {{ $posts := (where .Site.RegularPages "Section" "posts") }} + {{ $posts := (where .Site.RegularPages "Section" "in" site.Params.mainSections) }} {{ range first 10 $posts }} <div class="media"> {{ if .Params.thumbnailImageUrl }} |