Ignore 404.html and README.md in sitemap.rb

This commit is contained in:
Saivann 2014-05-10 12:20:01 -04:00
parent d258ee7c0b
commit cbeb956b9a

View file

@ -59,7 +59,7 @@ module Jekyll
end end
end end
next if !/\.html$|\.md$/.match(file1) next if !/\.html$|\.md$/.match(file1)
next if file1 == 'index.html' next if file1 == 'index.html' or file1 == '404.html' or file1 == 'README.md'
#Ignore google webmaster tools #Ignore google webmaster tools
data = File.read(file1) data = File.read(file1)
next if !data.index('google-site-verification:').nil? next if !data.index('google-site-verification:').nil?