Implemented separate templates for each post type.