Refactor the header logic.
Merge pull request #2 from joshualande/static_pages

Refactor the header logic.