Cleanup code, configure theme with if statements

theme.html uses if statements to figure out what .html files to include
depending on which page is called the theme.html