48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# File 'lib/jekyll/line_awesome.rb', line 48
def render(context)
if tag_contents = determine_arguments(@markup.strip)
icon_class, = tag_contents[0], tag_contents[1]
icon_tag(icon_class, )
else
raise ArgumentError.new <<-eos
Syntax error in tag 'icon' while parsing the following markup:
#{@markup}
Valid syntax:
for icons: {% icon la-camera-retro %}
for icons with size/spin/rotate: {% icon la-camera-retro la-lg %}
for a non-default family (lar/lab): {% icon la-twitter lab %}
eos
end
end
|