diff options
author | Brandon Mathis <brandon@imathis.com> | 2014-08-29 10:46:34 -0500 |
---|---|---|
committer | Brandon Mathis <brandon@imathis.com> | 2014-08-29 10:46:34 -0500 |
commit | 6bd719fd96a0d03318ef25c1b3cd79abe0e4525b (patch) | |
tree | 2aad9001072d76037c412fc3cab589ce74dc2634 | |
parent | c9e0078d65957180db6614a370a75ba881775e40 (diff) | |
download | my_new_personal_website-6bd719fd96a0d03318ef25c1b3cd79abe0e4525b.tar.xz my_new_personal_website-6bd719fd96a0d03318ef25c1b3cd79abe0e4525b.zip |
Fixed issue with RubyPants and the Octopress hooks filter
-rw-r--r-- | plugins/octopress_filters.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/octopress_filters.rb b/plugins/octopress_filters.rb index 92e2fe5f..9c7fa6c5 100644 --- a/plugins/octopress_filters.rb +++ b/plugins/octopress_filters.rb @@ -17,9 +17,10 @@ module OctopressFilters end def self.post_filter(page) if page.ext.match('html|textile|markdown|md|haml|slim|xml') - input = TemplateWrapper::unwrap(page.content) - page.content = RubyPants.new(input).to_html + page.output = TemplateWrapper::unwrap(page.output) end + + page.output = RubyPants.new(page.output).to_html end class PageFilters < Octopress::Hooks::Page |