Fix conditional display of post pages, collection indexes, collection item pages, etc.