generate resource for posts
add imgpost and textpost resources