single post template updated to use conditionals to help render elements