aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorBrandon Mathis <brandon@imathis.com>2014-08-29 10:46:34 -0500
committerBrandon Mathis <brandon@imathis.com>2014-08-29 10:46:34 -0500
commit6bd719fd96a0d03318ef25c1b3cd79abe0e4525b (patch)
tree2aad9001072d76037c412fc3cab589ce74dc2634 /plugins
parentc9e0078d65957180db6614a370a75ba881775e40 (diff)
downloadmy_new_personal_website-6bd719fd96a0d03318ef25c1b3cd79abe0e4525b.tar.xz
my_new_personal_website-6bd719fd96a0d03318ef25c1b3cd79abe0e4525b.zip
Fixed issue with RubyPants and the Octopress hooks filter
Diffstat (limited to 'plugins')
-rw-r--r--plugins/octopress_filters.rb5
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