removed page extensions from sitemap

This commit is contained in:
Riccardo Spagni 2015-02-18 11:16:38 +02:00
parent 2a7f1f2010
commit 44148a3e17
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD

View file

@ -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