aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorBrandon Mathis <brandon@imathis.com>2011-09-26 09:12:03 -0500
committerBrandon Mathis <brandon@imathis.com>2011-09-26 09:12:03 -0500
commit02433114c53d2fb95ebbda6179cd058c2057f142 (patch)
treef45705636a2d29fe3fce4632f3ed2eae18e30928 /plugins
parent7a7825f6679ec91df7df3993f58238e021f82675 (diff)
parentfdf6af1d25ddc991c96dc3b4df5f7e913adcd7ef (diff)
downloadmy_new_personal_website-02433114c53d2fb95ebbda6179cd058c2057f142.tar.xz
my_new_personal_website-02433114c53d2fb95ebbda6179cd058c2057f142.zip
Merge branch 'master' of github.com:imathis/octopress
Diffstat (limited to 'plugins')
-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