add closing tags to post layout