Addint pagination for index and including post date and author in reusable file