made the base template a little smarter

it duplicates code, so I made a macro
moved some links to the footer, cleaned up the nav