mirror of
https://github.com/monero-project/monero-site.git
synced 2024-12-23 12:09:49 +00:00
removed page extensions from sitemap
This commit is contained in:
parent
2a7f1f2010
commit
44148a3e17
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue