lib/jekyll/tidy.rb in jekyll-tidy-0.2.1 vs lib/jekyll/tidy.rb in jekyll-tidy-0.2.2
- old
+ new
@@ -19,11 +19,11 @@
exclude_paths = config["jekyll_tidy"] && config["jekyll_tidy"]["exclude"]
exclude_paths.to_a.any? { |exclude| File.fnmatch(exclude, path) }
end
def self.compress_output?
- config["jekyll_tidy"] && config["jekyll_tidy"]["compress_html"]
+ jekyll_config["jekyll_tidy"] && jekyll_config["jekyll_tidy"]["compress_html"]
end
def self.output_clean(output, compress = false)
if compress
return HtmlCompressor::Compressor.new.compress output
@@ -31,10 +31,10 @@
return HtmlBeautifier.beautify output
end
end
def self.ignore_env?
- Jekyll.env == (config["jekyll_tidy"] && config["jekyll_tidy"]["ignore_env"])
+ Jekyll.env == (jekyll_config["jekyll_tidy"] && jekyll_config["jekyll_tidy"]["ignore_env"])
end
end
end
# Jekyll Hooks