mirror of
https://github.com/kremalicious/blog.git
synced 2024-11-22 18:00:06 +01:00
also check for production value, not just key
This commit is contained in:
parent
09ac4eb983
commit
17fb1a4612
@ -16,6 +16,7 @@ url: https://kremalicious.com
|
|||||||
author: Matthias Kretschmann
|
author: Matthias Kretschmann
|
||||||
email: m@kretschmann.io
|
email: m@kretschmann.io
|
||||||
cdnurl: https://d2jlreog722xe2.cloudfront.net
|
cdnurl: https://d2jlreog722xe2.cloudfront.net
|
||||||
|
production: false
|
||||||
#cdnurl: https://cdn.kremalicious.com
|
#cdnurl: https://cdn.kremalicious.com
|
||||||
|
|
||||||
# Urls
|
# Urls
|
||||||
|
@ -230,7 +230,7 @@ module Jekyll
|
|||||||
end
|
end
|
||||||
|
|
||||||
# Return path relative to the site root for html
|
# Return path relative to the site root for html
|
||||||
if production
|
if production == 'true'
|
||||||
Pathname.new(File.join(cdnurl, baseurl, image_dest, image_dir, gen_name)).cleanpath
|
Pathname.new(File.join(cdnurl, baseurl, image_dest, image_dir, gen_name)).cleanpath
|
||||||
else
|
else
|
||||||
Pathname.new(File.join(baseurl, image_dest, image_dir, gen_name)).cleanpath
|
Pathname.new(File.join(baseurl, image_dest, image_dir, gen_name)).cleanpath
|
||||||
|
Loading…
Reference in New Issue
Block a user