From c235ca1db7140e8d6a68ff73c5ebdaa70bfc2004 Mon Sep 17 00:00:00 2001 From: erciccione Date: Fri, 24 Jul 2020 18:18:45 +0200 Subject: [PATCH] Fix URL generation in sitemap generator --- _plugins/sitemap_generator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_plugins/sitemap_generator.rb b/_plugins/sitemap_generator.rb index f9113427..c4878bc7 100644 --- a/_plugins/sitemap_generator.rb +++ b/_plugins/sitemap_generator.rb @@ -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