Supposedly the include tag was already fixed, merging that in
This commit is contained in:
commit
a4082378f7
|
@ -11,7 +11,7 @@ module Jekyll
|
||||||
return "Include file '#{@file}' contains invalid characters or sequences"
|
return "Include file '#{@file}' contains invalid characters or sequences"
|
||||||
end
|
end
|
||||||
|
|
||||||
Dir.chdir(File.join('.', context.registers[:site].source, '_includes')) do
|
Dir.chdir(File.join(context.registers[:site].source, '_includes')) do
|
||||||
choices = Dir['**/*'].reject { |x| File.symlink?(x) }
|
choices = Dir['**/*'].reject { |x| File.symlink?(x) }
|
||||||
if choices.include?(@file)
|
if choices.include?(@file)
|
||||||
source = File.read(@file)
|
source = File.read(@file)
|
||||||
|
|
Loading…
Reference in New Issue