adds inheritance for posts, updates templates