Adding logic for different post types and removing unwanted generated pages for each post by specifying index.html as the permalink for each post