lib/img_props.rb in jekyll_img-0.2.0 vs lib/img_props.rb in jekyll_img-0.2.1

- old
+ new

@@ -85,13 +85,13 @@ filetype = File.extname(URI(@src).path) @src += '.webp' if filetype.empty? @src = "/assets/images/#{@src}" unless ImgProperties.local_path?(@src) || url?(@src) - return unless ImgProperties.local_path?(@src) + # return unless ImgProperties.local_path?(@src) - src = @src.start_with?('/') ? ".#{@src}" : @src - raise Jekyll::ImgError, "#{@src} does not exist" unless File.exist?(src) + # src = @src.start_with?('/') ? ".#{@src}" : @src + # raise Jekyll::ImgError, "#{@src} does not exist" unless File.exist?(src) end UNITS = %w[Q ch cm em dvh dvw ex in lh lvh lvw mm pc px pt rem rlh svh svw vb vh vi vmax vmin vw %].freeze def size_unit_specified?