Templated the index page and generated hierarchy