From 2d439900c3ec39a6888e1d3c277bf4409cdc0737 Mon Sep 17 00:00:00 2001 From: Saivann Date: Sun, 26 May 2013 13:15:00 -0400 Subject: [PATCH] Remove ".html" from _posts urls in sitemap --- _plugins/sitemap.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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