extracted post type html into templates