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
949 stars 134 forks source link

Add option to keep index.html in links #254

Open kriation opened 4 years ago

kriation commented 4 years ago

By default, jekyll-sitemap removes index.html from all permalinks to ensure clean URLs in the resulting sitemap.xml. In some cases (particularly when Jekyll is hosted in S3) keeping index.html is helpful to ensure that search engines can properly hit the index.

kriation commented 3 years ago

@DirtyF @ashmaroli - When you have a chance, could you take a look at this PR?

brint commented 2 years ago

This would be nice. I'm currently leaving some pages out of my sitemap so Google will stop yelling at me for 403s for things hosted out of S3.

kriation commented 2 years ago

Thanks for the support, @brint! I'm using it in my deployment for this exact reason with a slight adjustment in the Gemfile pulling from my fork.