1
0
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:
Daniel Barber 2019-08-01 22:26:55 -04:00
parent 02d81c2143
commit 0a9efc403d
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8

View File

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