mirror of
https://github.com/WatchOutNewsAgency/wona.github.com.git
synced 2026-01-01 01:16:26 +00:00
Octopress filters are now limited to html producing templating languages, Fixes #536
This commit is contained in:
@ -24,10 +24,14 @@ module Jekyll
|
||||
class ContentFilters < PostFilter
|
||||
include OctopressFilters
|
||||
def pre_render(post)
|
||||
post.content = pre_filter(post.content)
|
||||
if post.ext.match('html|textile|markdown|haml|slim|xml')
|
||||
post.content = pre_filter(post.content)
|
||||
end
|
||||
end
|
||||
def post_render(post)
|
||||
post.content = post_filter(post.content)
|
||||
if post.ext.match('html|textile|markdown|haml|slim|xml')
|
||||
post.content = post_filter(post.content)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user