Merge commit '4f677f627ef569be8'
This commit is contained in:
commit
9c52bccafb
|
@ -14,7 +14,11 @@ module Jekyll
|
|||
Dir.chdir(File.join(Jekyll.source, '_includes')) do
|
||||
choices = Dir['**/*'].reject { |x| File.symlink?(x) }
|
||||
if choices.include?(@file)
|
||||
File.read(@file)
|
||||
source = File.read(@file)
|
||||
partial = Liquid::Template.parse(source)
|
||||
context.stack do
|
||||
partial.render(context)
|
||||
end
|
||||
else
|
||||
"Included file '#{@file}' not found in _includes directory"
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue