Permalink
Browse files

That was simple

  • Loading branch information...
1 parent dfa0c40 commit 70ae308cf883744f3a92383844378300382d4ddf @lparry committed Jan 11, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugins/image_cacher.rb
View
@@ -6,7 +6,7 @@
module Jekyll
class ImageCacher < PostFilter
def post_render(post)
- if post.ext.match('html|textile|markdown|md|haml|slim|xml') && ENV["ONLINE_IMAGES"].nil?
+ if post.ext.match('html|textile|markdown|md|haml|slim|xml') && post.data["dont_cache_images"].nil?
post.content = ImageFetcher.cache_images(post.content)
end
end

0 comments on commit 70ae308

Please sign in to comment.