set layout for posts