Fixed issue with RubyPants and the Octopress hooks filter

This commit is contained in:
Brandon Mathis 2014-08-29 10:46:34 -05:00
parent c9e0078d65
commit 6bd719fd96

View File

@ -17,9 +17,10 @@ module OctopressFilters
end end
def self.post_filter(page) def self.post_filter(page)
if page.ext.match('html|textile|markdown|md|haml|slim|xml') if page.ext.match('html|textile|markdown|md|haml|slim|xml')
input = TemplateWrapper::unwrap(page.content) page.output = TemplateWrapper::unwrap(page.output)
page.content = RubyPants.new(input).to_html
end end
page.output = RubyPants.new(page.output).to_html
end end
class PageFilters < Octopress::Hooks::Page class PageFilters < Octopress::Hooks::Page