mirror of
https://github.com/danbee/danbarber.me
synced 2025-03-04 08:59:10 +00:00
Make the directory for the processed files
This commit is contained in:
parent
02d81c2143
commit
0a9efc403d
@ -1,4 +1,5 @@
|
||||
require "mini_magick"
|
||||
require "fileutils"
|
||||
|
||||
module Jekyll
|
||||
module MiniMagick
|
||||
@ -20,6 +21,8 @@ module Jekyll
|
||||
return write_path
|
||||
end
|
||||
|
||||
FileUtils.mkpath("_site/#{dest_path}")
|
||||
|
||||
image = ::MiniMagick::Image.open("_pictures/#{image_path}")
|
||||
|
||||
image.combine_options do |i|
|
||||
@ -29,8 +32,6 @@ module Jekyll
|
||||
i.strip
|
||||
end
|
||||
|
||||
puts write_path
|
||||
|
||||
image.write "_site/#{write_path}"
|
||||
|
||||
write_path
|
||||
|
||||
Loading…
Reference in New Issue
Block a user