Each template currently has heavy copy/paste between templates. Leveraging jinja to extend would be cleaner. Here is how [mkdocs](https://github.com/mkdocs/mkdocs/tree/master/mkdocs/themes) does it.