lib/octopress-escape-code.rb in octopress-escape-code-1.0.4 vs lib/octopress-escape-code.rb in octopress-escape-code-2.0.0
- old
+ new
@@ -31,13 +31,13 @@
def self.unescape_raw(page)
page.output.gsub!(/\*-(end)?raw-\*/, '% \1raw %')
end
def self.escape_enabled?(page)
- get_config(page, 'escape_code', true)
+ get_config(page, 'escape_code', false)
end
- def self.get_config(page, config, default = true)
+ def self.get_config(page, config, default)
site_config = page.site.config[config]
site_config = default if site_config.nil?
page_config = page.data[config]
page_config = site_config if page_config.nil?