From 18825e7ced0056efa7a011495b23758c9b792e8d Mon Sep 17 00:00:00 2001 From: Thomas Reynolds Date: Fri, 22 Aug 2014 09:36:07 -0700 Subject: [PATCH] no reason for image sizes to touch the alt attr --- .../lib/middleman-more/extensions/automatic_image_sizes.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/middleman-core/lib/middleman-more/extensions/automatic_image_sizes.rb b/middleman-core/lib/middleman-more/extensions/automatic_image_sizes.rb index 594e374a..56cb6ebf 100644 --- a/middleman-core/lib/middleman-more/extensions/automatic_image_sizes.rb +++ b/middleman-core/lib/middleman-more/extensions/automatic_image_sizes.rb @@ -16,8 +16,6 @@ class Middleman::Extensions::AutomaticImageSizes < ::Middleman::Extension # @return [String] def image_tag(path, params={}) if !params.key?(:width) && !params.key?(:height) && !path.include?('://') - params[:alt] ||= '' - real_path = path real_path = File.join(images_dir, real_path) unless real_path.start_with?('/') full_path = File.join(source_dir, real_path)