Checklist
Is your feature request related to a problem? Please describe
The built-in search only shows the first 10 matches. When a query has more matches, there is no pagination or way to reveal the remaining posts, so visitors cannot discover older content.
Describe the solution you'd like
Expose a configuration (for example via _config.yml or a dedicated include) so that the limit option passed to SimpleJekyllSearch can be set by site owners, or implement pagination/infinite scroll so users can browse beyond the first page of results.
Describe alternatives you've considered
- Override
_includes/search-loader.html locally to pass a higher limit value. This works but duplicates theme code and must be maintained by each site.
- Replace the search with an external service such as Algolia or Elasticlunr, which increases setup complexity.
Additional context
- Chirpy version: 7.3.1 (
bundle show jekyll-theme-chirpy)
- The theme initializes
SimpleJekyllSearch without overriding its default limit (10) in _includes/search-loader.html.
Simple-Jekyll-Search documents the default limit of 10 results: https://github.com/christian-fei/Simple-Jekyll-Search/blob/master/dest/simple-jekyll-search.js#L311-L353
- Steps to reproduce:
- Build a site with more than 10 posts that match the same query.
- Open the search modal and type the query.
- Only the first 10 posts are rendered, and there is no option to view additional matches.
Checklist
Is your feature request related to a problem? Please describe
The built-in search only shows the first 10 matches. When a query has more matches, there is no pagination or way to reveal the remaining posts, so visitors cannot discover older content.
Describe the solution you'd like
Expose a configuration (for example via
_config.ymlor a dedicated include) so that thelimitoption passed toSimpleJekyllSearchcan be set by site owners, or implement pagination/infinite scroll so users can browse beyond the first page of results.Describe alternatives you've considered
_includes/search-loader.htmllocally to pass a higherlimitvalue. This works but duplicates theme code and must be maintained by each site.Additional context
bundle show jekyll-theme-chirpy)SimpleJekyllSearchwithout overriding its defaultlimit(10) in_includes/search-loader.html.Simple-Jekyll-Searchdocuments the default limit of 10 results: https://github.com/christian-fei/Simple-Jekyll-Search/blob/master/dest/simple-jekyll-search.js#L311-L353