mirror of
https://github.com/docker/docs.git
synced 2026-11-04 10:01:00 +00: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:
1 parent
97307d4c66
commit
5fe793f3a5
1 file changed
+5
-1
@@ -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