-
-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Checklist
- I have read and accepted the contributing guidelines.
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.htmllocally to pass a higherlimitvalue. 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
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- 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.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request