adds pagination to home page and archive feeds