jsjohnst-jekyll 0.4.1.999.2 → 0.4.1.999.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/jekyll/tags/include.rb +5 -3
  2. metadata +1 -1
@@ -23,10 +23,12 @@ module Jekyll
23
23
  return "Include file '#{@file}' contains invalid characters or sequences"
24
24
  end
25
25
 
26
- if Jekyll.site && Jekyll.site.options
26
+ path = File.join(Jekyll.source, '_includes')
27
+
28
+ # this doesn't ever seem to work right. seems to be a variable scoping issue
29
+ if Jekyll.site && Jekyll.site.options && Jekyll.site.options['include_path']
30
+ puts "Using options"
27
31
  path = Jekyll.site.options['include_path']
28
- else
29
- path = File.join(Jekyll.source, '_includes')
30
32
  end
31
33
 
32
34
  Dir.chdir(path) do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsjohnst-jekyll
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1.999.2
4
+ version: 0.4.1.999.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Preston-Werner