Added basic search functionality to posts.html