add post class to pagination