Skip to content

Commit

Permalink
removed page extensions from sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
fluffypony committed Feb 18, 2015
1 parent 2a7f1f2 commit 44148a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion _plugins/sitemap_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,9 @@ def fill_url(site, page_or_post)
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
Expand Down

0 comments on commit 44148a3

Please sign in to comment.