diff options
author | Alan <alan@yggdrasil.net> | 2020-07-17 15:24:01 +0300 |
---|---|---|
committer | Thibaud Lepretre <thibaud.lepretre@gmail.com> | 2021-08-11 15:04:00 +0300 |
commit | 6713b3fb8d6170a342521cd36c2c8d0026b33535 (patch) | |
tree | 0018fc05cbab3f14da0bf32c40ae3866b045b95c | |
parent | 7c5505a45abb14e248cf13fc5524e21431355840 (diff) |
MOD: tentative fix for search too
-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 }} |