Need help search bar and listing

I am in the final stages of developing a Hugo website. Before completing this project, I had two problems. I worked very hard but could not solve those problems. I need your help to solve these problems.

  1. I have created a community page. I want to list 4 posts in each of the folders inside. We need your guidance on that.
    folder link: joe/content/community at main · sualsoft/joe · GitHub

  2. I currently have a search bar for my blog. I want to use a similar search bar for the community as well. We need your help with that. Thank you!

Currently codes: GitHub - sualsoft/joe