lib/jekyll-sitemap.rb in jekyll-sitemap-0.3.0 vs lib/jekyll-sitemap.rb in jekyll-sitemap-0.4.0
- old
+ new
@@ -1,16 +1,15 @@
require 'fileutils'
-require File.expand_path('static_file', File.dirname(__FILE__))
module Jekyll
class JekyllSitemap < Jekyll::Generator
safe true
# Main plugin action, called by Jekyll-core
def generate(site)
@site = site
@site.config["time"] = Time.new
- @site.config["static_files"] = html_files.map(&:to_liquid)
+ @site.config["html_files"] = html_files.map(&:to_liquid)
unless sitemap_exists?
write
@site.keep_files ||= []
@site.keep_files << "sitemap.xml"
end