From 4c002e7f79d33ae754984700abaaf8d099ac5eb0 Mon Sep 17 00:00:00 2001 From: Axel Date: Sat, 11 Jul 2020 19:51:52 -0400 Subject: [PATCH] Using bhavyanshu proposed fix issue here: https://github.com/kinnetica/jekyll-plugins/issues/6 --- _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 f2a51c1409..52f17892e1 100644 --- a/_plugins/sitemap_generator.rb +++ b/_plugins/sitemap_generator.rb @@ -90,7 +90,7 @@ def generate(site) # File I/O: create sitemap.xml file and write out pretty-printed XML filename = @config['filename'] - file = File.new(File.join(site.dest, filename), "w") + file = File.new(File.join(site.dest+"/../", filename), "w") # formatter = REXML::Formatters::Pretty.new(4) formatter.compact = true formatter.write(sitemap, file)