search: exclude hidden pages from index

Hidden pages (pages excluded from the sitemap) shouldn't be included in
the pagefind index.

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
David Karlsson
2024-05-24 16:12:43 +02:00
parent 97307d4c66
commit 5fe793f3a5

View File

@@ -30,7 +30,11 @@
{{ end }}
</div>
</div>
<div data-pagefind-body class="min-w-0 px-4 pb-32">
<div
{{- if ne .Params.sitemap false }}
data-pagefind-body
{{- end }}
class="min-w-0 px-4 pb-32">
{{ block "main" . }}
{{ end }}
</div>