Merge pull request #1097

Fix URL generation in sitemap generator
This commit is contained in:
luigi1111 2020-07-27 21:42:49 -05:00 committed by GitHub
commit b59de362ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -181,7 +181,7 @@ module Jekyll
# Returns the location of the page or post
def fill_location(site, page_or_post)
loc = REXML::Element.new "loc"
url = site.config['url'] + site.config['baseurl']
url = site.config['baseurl']
loc.text = page_or_post.location_on_server(url)
loc