Add post and body classes

Fixes issue #2352