fixed the footer issue with displaying a post title before published