dedicated search results page (redux) (#29902)
* dedicated search results page (redux) * Update SearchResults.tsx * adding pagination * fix pagination * say something on NoQuery * better Flash * tidying link * small fixes for results * debug info * l18n the meta info * inDebugMode * basic jest rendering of the skeleton page * basic jest rendering test * fix content tests * better document title * fix tests * quote query in page title * use home page sidebar * something when nothing is found * parseInt no longer needs the 10 * fix linting tests * fix test * prettier * Update pages/search.tsx Co-authored-by: Rachael Sewell <rachmari@github.com> Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com> Co-authored-by: Rachael Sewell <rachmari@github.com>
This commit is contained in:
@@ -7,7 +7,11 @@ export default async function genericToc(req, res, next) {
|
||||
if (!req.context.page) return next()
|
||||
if (req.context.currentLayoutName !== 'default') return next()
|
||||
// This middleware can only run on product, category, and map topics.
|
||||
if (req.context.page.documentType === 'homepage' || req.context.page.documentType === 'article')
|
||||
if (
|
||||
req.context.page.documentType === 'homepage' ||
|
||||
req.context.page.documentType === 'article' ||
|
||||
req.context.page.relativePath === 'search/index.md'
|
||||
)
|
||||
return next()
|
||||
|
||||
// This one product TOC is weird.
|
||||
|
||||
Reference in New Issue
Block a user