Implement toc parsing
Rename 'index' in the config to 'pages'