You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to build a static site search for a project built in Eleventy. I am using lunr.js as the search engine and have successfully built the index and can search it in Javascript. Where I'm stuck is:
If the number of results is larger than a single page, how can I pipe the results into a custom collection?
If the search box appears on all pages, is it better to have a custom search results page or overwrite an existing pages, e.g., the home page by passing the search query terms as parameters?
This is sort of the last issue that I need to solve before going live with the site so any thoughts, help, is appreciated.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi!
I need to build a static site search for a project built in Eleventy. I am using lunr.js as the search engine and have successfully built the index and can search it in Javascript. Where I'm stuck is:
This is sort of the last issue that I need to solve before going live with the site so any thoughts, help, is appreciated.
Beta Was this translation helpful? Give feedback.
All reactions