lib/bonsai/sitemap.rb in bonsai-1.3.1 vs lib/bonsai/sitemap.rb in bonsai-1.3.2
- old
+ new
@@ -11,11 +11,11 @@
xml.loc(Bonsai.site[:url])
xml.lastmod(index.mtime.utc.strftime("%Y-%m-%d"))
xml.changefreq(change_freq)
}
- Bonsai::Page.all.delete_if{|p| p.permalink === "/index"}.each do |page|
+ Bonsai::Page.all.delete_if{|p| p.permalink === "/index/"}.each do |page|
xml.url {
xml.loc(Bonsai.site[:url] + page.permalink)
xml.lastmod(page.mtime.utc.strftime("%Y-%m-%d"))
xml.changefreq(change_freq)
}
@@ -33,6 +33,6 @@
HELP
exit
end
end
-end
\ No newline at end of file
+end