getgrav / grav-plugin-sitemap

Grav Sitemap Plugin
https://getgrav.org
MIT License
42 stars 42 forks source link

Sitemap plugin shall honor grav page header flag visible #21

Closed trial-n-error closed 8 years ago

trial-n-error commented 8 years ago

Hi,

the sitemap plugin lists also invisible pages. Pages with the header "visible: false" probably should not be listed. They might be ignored by sitemap plugin configuration though.

Fix seems rather simple.

Best regards, Mario

flaviocopes commented 8 years ago

"Not visible" means the page is not in the navigation https://learn.getgrav.org/content/headers#visible. But still, that page should be listed in the sitemap, as part of the site.

To remove a page from the site and from the sitemap you need to set it as published: false