mirror of
https://github.com/monero-project/monero-site.git
synced 2025-01-18 23:53:42 +02:00
removed page extensions from sitemap
This commit is contained in:
parent
2a7f1f2010
commit
44148a3e17
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user