update social template to work with posts