1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-06-30 21:52:05 +02: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
email: m@kretschmann.io
cdnurl: https://d2jlreog722xe2.cloudfront.net
production: false
#cdnurl: https://cdn.kremalicious.com
# Urls

View File

@ -230,7 +230,7 @@ module Jekyll
end
# 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
else
Pathname.new(File.join(baseurl, image_dest, image_dir, gen_name)).cleanpath