From 44148a3e17ad93c92f62a222d808bf6795e4b38b Mon Sep 17 00:00:00 2001 From: Riccardo Spagni Date: Wed, 18 Feb 2015 11:16:38 +0200 Subject: [PATCH] removed page extensions from sitemap --- _plugins/sitemap_generator.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/_plugins/sitemap_generator.rb b/_plugins/sitemap_generator.rb index 4b6abf02..1e319f7f 100644 --- a/_plugins/sitemap_generator.rb +++ b/_plugins/sitemap_generator.rb @@ -198,7 +198,9 @@ module Jekyll def fill_location(site, page_or_post) loc = REXML::Element.new "loc" url = site.config['url'] + site.config['baseurl'] - loc.text = page_or_post.location_on_server(url) + + # the Monero site is served "extensionless", so lose the extensions + loc.text = page_or_post.location_on_server(url).gsub('.html', '').gsub('.php', '') loc end