using layout file and ruby to get title on pages