jekyll-sitemap: Binary files do not inherit sitemap: false from defaults

To reproduce, create a binary file (for example .pdf) somewhere in your Jekyll site and add the following to _config.yml:

defaults:
  - scope:
      path: ""
    values:
      sitemap: false

Expected behavior: empty sitemap is generated. Actual behavior: all .md, .html, etc. files are excluded, but binary files with no front matter are included.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 15 (7 by maintainers)

Commits related to this issue

Most upvoted comments

Thanks everybody for all the work. This appears fixed when building site locally using latest versions of jekyll and jekyll-sitemap. I’ve made a PR to the GitHub Pages gem to update the versions, so that this carriers over to my live site as well. Assuming no surprises, I’ll close the issue at that time.

Confirming that problem is NOT fixed on the master branch.