adds layout to posts