diff options
Diffstat (limited to '_plugins/example.rb')
-rw-r--r-- | _plugins/example.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/_plugins/example.rb b/_plugins/example.rb new file mode 100644 index 0000000..e149f23 --- /dev/null +++ b/_plugins/example.rb @@ -0,0 +1,12 @@ +module Jekyll + class ExampleTagBlock < Liquid::Block + + def render(context) + text = super + "<span style=\"text-transform: uppercase; font-weight: bold; font-size: .75em;\">Example</span> #{text}" + end + + end +end + +Liquid::Template.register_tag('example', Jekyll::ExampleTagBlock) |