fix main.html template -- <title> was eating everything

It should be pretty clear.  The `<title>` `</title>` tags should surround the conditional, and the closing tag should not be inside the else clause