aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorBrandon Mathis <brandon@imathis.com>2011-07-23 17:40:17 -0400
committerBrandon Mathis <brandon@imathis.com>2011-07-23 17:41:03 -0400
commita80cb12c8c0d5e5106c3698bdcf5338559d09bf3 (patch)
tree0d497457472ae728b86059a30e62f855282fdd08 /plugins
parent3d3781e259d64d7cb9045db46e2d39166a8f81b8 (diff)
downloadmy_new_personal_website-a80cb12c8c0d5e5106c3698bdcf5338559d09bf3.tar.xz
my_new_personal_website-a80cb12c8c0d5e5106c3698bdcf5338559d09bf3.zip
fixed typos and cleand up the image tag plugin
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 d7c85925..7be4003d 100644
--- a/plugins/image_tag.rb
+++ b/plugins/image_tag.rb
@@ -5,7 +5,7 @@
# Syntax {% image [class name(s)] url [title text] %}
#
# Example:
-# {% imaeg left half http://site.com/images/ninja.png Ninja Attack! %}
+# {% ima left half http://site.com/images/ninja.png Ninja Attack! %}
#
# Output:
# <image class='left' src="http://site.com/images/ninja.png" title="Ninja Attack!" alt="Ninja Attack!">
@@ -30,7 +30,7 @@ module Jekyll
def render(context)
output = super
if @img
- figure = "<img class='#{@class}' src='#{@img}' alt='#{@title}' title='#{@title}'>"
+ "<img class='#{@class}' src='#{@img}' alt='#{@title}' title='#{@title}'>"
else
"Error processing input, expected syntax: {% img [class name(s)] /url/to/image [title text] %}"
end