diff --git a/_plugins/sitemap.rb b/_plugins/sitemap.rb index 47dbacd5..af191232 100644 --- a/_plugins/sitemap.rb +++ b/_plugins/sitemap.rb @@ -47,19 +47,19 @@ module Jekyll Dir.foreach(file1) do |file2| next if !/\.html$/.match(file2) sitemap.puts '' - sitemap.puts ' http://bitcoin.org/'+file1+'/'+file2+'' + sitemap.puts ' http://bitcoin.org/'+file1+'/'+file2.gsub('.html','')+'' sitemap.puts '' end end next if !/\.html$/.match(file1) sitemap.puts '' - sitemap.puts ' http://bitcoin.org/'+file1+'' + sitemap.puts ' http://bitcoin.org/'+file1.gsub('.html','')+'' sitemap.puts '' end #Add posts site.posts.each do |post| sitemap.puts '' - sitemap.puts ' http://bitcoin.org'+post.url+'' + sitemap.puts ' http://bitcoin.org'+post.url.gsub('.html','')+'' sitemap.puts '' end #Close sitemap