ekoeryanto / vuepress-plugin-sitemap

Sitemap generator plugin for vuepress.
MIT License
93 stars 19 forks source link

Support frontmatter to exclude page from sitemap #23

Closed dsturm closed 4 years ago

dsturm commented 4 years ago

This PR relates to #18. I've implemented support of parsing frontmatter data to exclude a page from sitemap.

Like in the original feature request, you can set sitemap: falseto exclude a specific page. It further checks for the meta data and searches for a robots value containing noindex.

Currently, if above data evaluates to true, the page path will be pushed to the exclude option parameter. It could be discussed, wether to break / return from the forEach loop instead.