You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
497 B
17 lines
497 B
module Jekyll |
|
module Tags |
|
class TipTag < Liquid::Block |
|
def render(context) |
|
site = context.registers[:site] |
|
converter = site.find_converter_instance(::Jekyll::Converters::Markdown) |
|
output = converter.convert(super(context)) |
|
"<div class=\"callout callout-success\"> |
|
<h3><i class=\"fa fa-lightbulb-o\"></i> Tip</h3> |
|
#{output} |
|
</div>" |
|
end |
|
end |
|
end |
|
end |
|
|
|
Liquid::Template.register_tag('tip', Jekyll::Tags::TipTag) |