Commit d8dee426 authored by Sylvester Keil's avatar Sylvester Keil

make sure it is an absolute path

#14
parent 22a38163
......@@ -71,7 +71,8 @@ module Jekyll
name = config['bibliography']
end
return name if File.exists?(name)
# return as is if it is an absolute path
return name if name.start_with?('/') && File.exists?(name)
p = File.join(config['source'], name)
p << '.bib' unless File.exists?(p)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment