diff --git a/packages/marko-web-theme-monorail/templates/search.marko b/packages/marko-web-theme-monorail/templates/search.marko index 44a191605..208c8fb06 100644 --- a/packages/marko-web-theme-monorail/templates/search.marko +++ b/packages/marko-web-theme-monorail/templates/search.marko @@ -17,10 +17,6 @@ $ const description = i18nIsFunction ? `${i18n("Search")} ${config.siteName()}` $ const currentPage = search.getCurrentPage(); -$ const overrideSortField = get(site, 'config.setSearchSortFieldToScore'); -$ const searchQueryPresent = (search.query.searchQuery && search.query.searchQuery !== ''); -$ const setDefaultSortField = (searchQueryPresent && !search.query.sortField && overrideSortField); -$ const sortField = setDefaultSortField ? 'SCORE' : search.input.sortField; $ const sponsorLogo = site.get('search.sponsorLogos.page'); @@ -73,7 +69,7 @@ $ const sponsorLogo = site.get('search.sponsorLogos.page');
- +
Sponsored by @@ -91,7 +87,7 @@ $ const sponsorLogo = site.get('search.sponsorLogos.page');