Adding per content type page template function and checking in custom entry page template and front page template