Created a NavigationNode class hierarchy in generator.py that cleans up the navigation generation code. Potentially it can be re-used to generate the content pages themselves.