Skip to content

Commit

Permalink
Supposedly the include tag was already fixed, merging that in
Browse files Browse the repository at this point in the history
  • Loading branch information
qrush committed Mar 18, 2009
2 parents 479d8c7 + 4c81c4a commit a408237
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jekyll/tags/include.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def render(context)
return "Include file '#{@file}' contains invalid characters or sequences"
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) }
if choices.include?(@file)
source = File.read(@file)
Expand Down

0 comments on commit a408237

Please sign in to comment.