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:
parent
bc4d6154f9
commit
5a7081ec2a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user