Add pagination to templates/index.html