no reason for image sizes to touch the alt attr
This commit is contained in:
parent
0d2bcbabe9
commit
18825e7ced
1 changed files with 0 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue