jekyll-responsive-image/lib/jekyll/responsive_image/extra_image_generator.rb

16 lines
363 B
Ruby

module Jekyll
class ResponsiveImage
class ExtraImageGenerator < Jekyll::Generator
include Jekyll::ResponsiveImage::Common
def generate(site)
config = make_config(site)
config['extra_images'].each do |pathspec|
Dir.glob(pathspec) { |path| ImageProcessor.process(path, config) }
end
end
end
end
end