fix post breaks, layouts, and pagination