blog content and blog summary part put in if and else condition