mirror of
https://github.com/docker/docs.git
synced 2026-04-05 02:38:52 +07:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user