Add category class to the cookbook partial.

This colors the cookbook partial based on their category.