Add pages array in head.php and page title to sub pages.