Render each post one time only and attach its categories as classes