jekyll / jekyll-sitemap

Jekyll plugin to silently generate a sitemaps.org compliant sitemap for your Jekyll site
http://rubygems.org/gems/jekyll-sitemap
MIT License
961 stars 135 forks source link

exclude directories via config #192

Closed COV-GIS closed 7 years ago

COV-GIS commented 7 years ago

Being able to exclude entire directories from being included in the sitemap would be a nice enhancement.

benbalter commented 7 years ago

We should document it better, but I believe you should be able to do this via front matter defaults. See

https://github.com/jekyll/jekyll-sitemap#exclusions

and

https://jekyllrb.com/docs/configuration/#front-matter-defaults

COV-GIS commented 7 years ago

Thanks for the reply.

I was unaware of the front matter defaults. Will be very handy in general.

That's not a viable solution however. The directory I'm trying exclude contains prebuilt apps (including a lot of html snippets for widgets) and other content that I don't want included in sitemap. Jekyll's roll is simply to copy that directory as is to _site. There's nothing there to be processed.

It's a more of an issue with my workflow. Needs to be excluded from Jekyll and copied with the task runner.

Thanks again!

benbalter commented 7 years ago

I believe you should be able to set a front matter default for the parent directory, and all subdirectories would be excluded.