Drain the artichoke hearts, chop them if necessary. Finely dice the onions and garlic.
Fry the olives with onions and garlic in olive oil (do not let them get too hot, otherwise the garlic will become bitter). Add the artichokes and heat them up. Keep the mixture warm. Toast the pine nuts in a pan without oil until they turn color.
Boil the pasta in salted water until firm to the bite, drain, mix immediately with the artichoke mixture, herbs and pine nuts, season with pepper and salt and, if necessary, chili powder and serve with grated Parmesan.