Updated conditions on front page. to detect page or post and assign appropriate headings