summaryrefslogtreecommitdiffstats
path: root/_plugins/example.rb
diff options
context:
space:
mode:
Diffstat (limited to '_plugins/example.rb')
-rw-r--r--_plugins/example.rb12
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> &nbsp; #{text}"
+ end
+
+ end
+end
+
+Liquid::Template.register_tag('example', Jekyll::ExampleTagBlock)