blob: 10e1e16f2f6a44988b6a76d58c025cbb33bc09a4 [file] [log] [blame]
module Jekyll
class OkTag < Liquid::Tag
def initialize(tag_name, text, tokens)
super
end
def render(context)
"<i class='glyphicon glyphicon-ok' style='color: #00d000;'></i>"
end
end
class ErrorTag < Liquid::Tag
def initialize(tag_name, text, tokens)
super
end
def render(context)
"<i class='glyphicon glyphicon-remove' style='color: #d00000;'></i>"
end
end
class WarningTag < Liquid::Tag
def initialize(tag_name, text, tokens)
super
end
def render(context)
"<i class='glyphicon glyphicon-minus' style='color: #efcb00;'></i>"
end
end
end
Liquid::Template.register_tag('ok', Jekyll::OkTag)
Liquid::Template.register_tag('err', Jekyll::ErrorTag)
Liquid::Template.register_tag('warn', Jekyll::WarningTag)