added truncate for posts on index