summaryrefslogtreecommitdiffstats
path: root/_plugins/example.rb
diff options
context:
space:
mode:
authorJustin Gassner <justin.gassner@mailbox.org>2024-02-14 07:24:38 +0100
committerJustin Gassner <justin.gassner@mailbox.org>2024-02-14 07:24:38 +0100
commit28407333ffceca9b99fae721c30e8ae146a863da (patch)
tree67fa2b79d5c48b50d4e394858af79c88c1447e51 /_plugins/example.rb
parent777f9d3fd8caf56e6bc6999a4b05379307d0733f (diff)
downloadsite-28407333ffceca9b99fae721c30e8ae146a863da.tar.zst
Update
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)