1
0
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:
Matthias Kretschmann 2014-09-06 14:25:18 +02:00
parent 09ac4eb983
commit 17fb1a4612
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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