1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-06-30 21:52:05 +02:00

fix enable_cdnurl check in picture tag

This commit is contained in:
Matthias Kretschmann 2014-09-06 16:16:25 +02:00
parent bc4d6154f9
commit 5a7081ec2a

View File

@ -230,11 +230,12 @@ module Jekyll
end
# Return path relative to the site root for html
if enable_cdnurl == 'true'
if enable_cdnurl == true
Pathname.new(File.join(cdnurl, baseurl, image_dest, image_dir, gen_name)).cleanpath
else
Pathname.new(File.join(baseurl, image_dest, image_dir, gen_name)).cleanpath
end
end
end
end