added paginate to posts in home page