mirror of
https://github.com/kremalicious/blog.git
synced 2024-11-22 09:56:51 +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
|
||||
email: m@kretschmann.io
|
||||
cdnurl: https://d2jlreog722xe2.cloudfront.net
|
||||
production: false
|
||||
#cdnurl: https://cdn.kremalicious.com
|
||||
|
||||
# Urls
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user