Refactored title code for static pages to include default base title or full title