add x-total-pages header to post listing