aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Hemberger <mail@frederic-hemberger.de>2011-09-26 15:58:14 +0200
committerFrederic Hemberger <mail@frederic-hemberger.de>2011-09-26 15:58:14 +0200
commitfdf6af1d25ddc991c96dc3b4df5f7e913adcd7ef (patch)
tree509fb1f26d31abde124c6cc66b7b4a6b2590e3cf
parentab62bb93558db7a422ee9c1b87e1b524b57dc5a4 (diff)
downloadmy_new_personal_website-fdf6af1d25ddc991c96dc3b4df5f7e913adcd7ef.tar.xz
my_new_personal_website-fdf6af1d25ddc991c96dc3b4df5f7e913adcd7ef.zip
Fixes img tag properties
Diffstat (limited to '')
-rw-r--r--plugins/image_tag.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/image_tag.rb b/plugins/image_tag.rb
index 20595cb9..45670007 100644
--- a/plugins/image_tag.rb
+++ b/plugins/image_tag.rb
@@ -30,9 +30,9 @@ module Jekyll
@img['title'] = title
@img['alt'] = alt
else
- @img['alt'] = @img['title'].gsub!(/"/, '&#34;')
+ @img['alt'] = @img['title'].gsub!(/"/, '&#34;') if @img['title']
end
- @img['class'].gsub!(/"/, '')
+ @img['class'].gsub!(/"/, '') if @img['class']
end
super
end