create post and convert layout to haml