changed the home page generation to get page by path since the title could be different than home