freeStuffDev
freeStuffDev copied to clipboard
Change searching method
Right now we're searching through javascript that only valid for one page. As the item grows, we need to make a pagination to not load all items at once.
For that pagination, we'll need a new search/filter method. [might be change not live search anymore as we have now]
Watchout there are 3 pages will be affected: index / tag(list) / random
potential solution: https://onebite.dev/add-live-search-in-hugo-website/
Can I take this task?
HI @Ravina-Deogadkar thanks for your willingness to do this task. Appreciate it. Here's what I planned to do:
- Pagination limit to 100
- We can get 'API' data from /stuff/index.json
- Search method become a 'HTML form' that submit request to go to another page
- The 'search page' will be like on this link 'https://onebite.dev/add-live-search-in-hugo-website/'. EIther using vanillaJS if you comfortable with it or vueJS, like what's used in the link.
- Cards template will have the same design as we have now.
Thanks. LMK if you have a suggestion / better idea
Sure, I have never used vanillaJS before but I can check if it works. Can you assign the issue to me?
I am getting an error while cloning in windows 11.
Looks like Windows have issue with "|" as a file name. I've update(delete) that file since its not active anymore. You can try again after pull the latest change
please assign me this sir.
Hi @Ravina-Deogadkar are you still working on this? If no answer after 2 days, I'll assume you stopped working on it. Thanks!
need to verify since @arpanbiki want to work on it.