Skip to content
Snippets Groups Projects
Unverified Commit 44148a3e authored by Riccardo Spagni's avatar Riccardo Spagni :speech_balloon:
Browse files

removed page extensions from sitemap

parent 2a7f1f20
No related branches found
No related tags found
No related merge requests found
...@@ -198,7 +198,9 @@ module Jekyll ...@@ -198,7 +198,9 @@ module Jekyll
def fill_location(site, page_or_post) def fill_location(site, page_or_post)
loc = REXML::Element.new "loc" loc = REXML::Element.new "loc"
url = site.config['url'] + site.config['baseurl'] 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 loc
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment