adds layout to post