added pagination to public index and posts/index
used apple styling