Remove /index.html and /404.html from sitemap

This commit is contained in:
Saivann 2013-05-26 13:16:08 -04:00
parent 2d439900c3
commit d8ed71a50b

View file

@ -52,6 +52,7 @@ module Jekyll
end end
end end
next if !/\.html$/.match(file1) next if !/\.html$/.match(file1)
next if file1 == 'index.html' || file1 == '404.html'
sitemap.puts '<url>' sitemap.puts '<url>'
sitemap.puts ' <loc>http://bitcoin.org/'+file1.gsub('.html','')+'</loc>' sitemap.puts ' <loc>http://bitcoin.org/'+file1.gsub('.html','')+'</loc>'
sitemap.puts '</url>' sitemap.puts '</url>'