adds slugs to posts