I have a site definition created from team site, and I activated publishing feature on this site, the pages appear on left and top navigation once I create the site. I have feature receivers on the site that create my navigation dynamic.
I tried to remove
<nav> from the site definition but that broke the navigation. how do I remove unnecessary pages that I added in my features from navigation?