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.
- data/lib/jekyll/tags/include.rb +5 -3
- metadata +1 -1
data/lib/jekyll/tags/include.rb
CHANGED
@@ -23,10 +23,12 @@ module Jekyll
|
|
23
23
|
return "Include file '#{@file}' contains invalid characters or sequences"
|
24
24
|
end
|
25
25
|
|
26
|
-
|
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
|