fixed typos and cleand up the image tag plugin

This commit is contained in:
Brandon Mathis 2011-07-23 17:40:17 -04:00
parent 3d3781e259
commit a80cb12c8c

View File

@ -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