timlrx / tailwind-nextjs-starter-blog

This is a Next.js, Tailwind CSS blogging starter template. Comes out of the box configured with the latest technologies to make technical writing a breeze. Easily configurable and customizable. Perfect as a replacement to existing Jekyll and Hugo individual blogs.
https://tailwind-nextjs-starter-blog.vercel.app/
MIT License
8.45k stars 1.96k forks source link

Limit on the number of keywords in search #814

Closed juskek closed 8 months ago

juskek commented 8 months ago

Describe the bug There is a cutoff on the number/length of keywords that can be searched.

To Reproduce Steps to reproduce the behavior:

  1. Clone this branch
  2. yarn dev
  3. See gif for error

Expected behavior All keywords should be searchable

Screenshots bug

System Info (if dev / build issue):

Browser Info (if display / formatting issue):

Additional context Add any other context about the problem here.

juskek commented 8 months ago

Keywords need to be split by commas, not spaces, e.g.

// THIS WILL NOT WORK
keywords: 'one two three four five six seven',

// THIS WORKS
keywords: 'one,two,three,four,five,six,seven',

See kbar source code: https://github.com/timc1/kbar/blob/07f04bc717ccaaf03392a6b115f9342cf584d28c/src/useMatches.tsx#L20