Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Using the first item of plugins conf array or just plugin conf string

  • Loading branch information...
commit ecfbc47fcb69578a15223367643996f6875a105d 1 parent d80204e
Johan Bleuzen authored
Showing with 8 additions and 2 deletions.
  1. +8 −2 asset_bundler.rb
View
10 asset_bundler.rb
@@ -247,8 +247,14 @@ def load_content()
end
def cache_dir()
- cache_dir = File.expand_path( "./_asset_bundler_cache",
- @context.registers[:site].source )
+ plugin_conf = @context.registers[:site].plugins
+ # Hack for jekyll versions before 0.12.0
+ if plugin_conf.kind_of?(Array)
+ plugin_dir = plugin_conf.first
+ else
+ plugin_dir = plugin_conf
+ end
+ cache_dir = File.expand_path( "../_asset_bundler_cache", plugin_dir)
if( !File.directory?(cache_dir) )
FileUtils.mkdir_p(cache_dir)
end
Please sign in to comment.
Something went wrong with that request. Please try again.