Skip to content

Commit 09e49d0

Browse files
committed
search: hide empty categories by default
The search page (https://git-scm.com/search/results?search=something) is now backed by Pagefind, which allows specifying a "category", i.e. whether to show only results from the book or the reference, etc. By default, the Pagefind UI shows all categories, even if there are no matches for the current search term(s) in a given category. Let's turn that off. See https://pagefind.app/docs/ui/#show-empty-filters for more details. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent d09d33d commit 09e49d0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

assets/js/application.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@ var Search = {
362362

363363
const ui = new PagefindUI({
364364
element: "#search-div",
365+
showEmptyFilters: false,
365366
showSubResults: true,
366367
showImages: false,
367368
language,

0 commit comments

Comments
 (0)