Footer refactor.

Rewrote the footer for the index page, refactored the rest of the pages
to keep dangling tags out of the partials.