Adds pagination to the index. This requires changing the index from a Markdown file to an html file.