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

github.com/kakawait/hugo-tranquilpeak-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan <alan@yggdrasil.net>2020-07-17 15:24:01 +0300
committerThibaud Lepretre <thibaud.lepretre@gmail.com>2021-08-11 15:04:00 +0300
commit6713b3fb8d6170a342521cd36c2c8d0026b33535 (patch)
tree0018fc05cbab3f14da0bf32c40ae3866b045b95c
parent7c5505a45abb14e248cf13fc5524e21431355840 (diff)
MOD: tentative fix for search too
-rw-r--r--layouts/partials/search.html2
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 }}