Fixed issue with RubyPants and the Octopress hooks filter
This commit is contained in:
parent
c9e0078d65
commit
6bd719fd96
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user