Adds pages and content to index.